I have a disclaimer.php, index.php and default.shtml. I think I have coded it right, but it doesn't seem to work...any help would be appreciated.
Basically, users reach the index.php page it sees whether or not the cookie has a certain value if they do then they are directed to the default.shtml, if they don't they are send to the disclaimer.php page.
disclaimer.php page sets the cookie
<?php
setcookie("masondisclaimer", "yes", time()+86400*30);
?>
index.php checks and directs the user
<?php
if (!isset($HTTP_COOKIE_VARS['masondisclaimer'] = "yes")
header ("Location: default.shtml");
else
header ("Location: disclaimer.php");
}
?>
Thanks