cookie

Intro page showed just one time

Hi Tom I have made a static intro page with a specific template. I want show it just one time. I have add at the beginning of the template the following code: <?php if(! $_COOKIE[‘visited’]) { setcookie(“visited”, ‘1’); } else { header(‘Location: http: //mysite/?page_id=2’); } ?> It isn’t work as the cookie is always true … Read more