Hi there. I have a website with cookies created when a user is logged on. Some pages should only be viewable to those logged in. Here's what I've got, but it's not working:
<?
if (isset ($cookie)) {
return false; //do nothign
}
else{
header("Location: /pleaselogin.htm"
}
?>
It always redirects....any ideas why it's not reading the cookie properly?
<?
if (isset ($cookie)) {
return false; //do nothign
}
else{
header("Location: /pleaselogin.htm"
}
?>
It always redirects....any ideas why it's not reading the cookie properly?