The cookie must be set before the first HTML tag

A cookie that is set in a page cannot be read in that same page the first time the page is displayed. It must be refreshed, or read in a different page.

Welcome to our site!
new line
PV not set yet

Hint: Hit refresh to see the messages update.