All im trying to do is see if the username is set in the cookies, ive tried isset() and empty() with no luck. Also i tried $HTTP_COOKIE_VARS['username'] and $username with those functions and the php does nothing no matter if the cookie username is set or not. Web pages are fake, but i use real ones that i know work in my code.
$HTTP_COOKIE_VARS['username'] = $username;
if(isset($HTTP_COOKIE_VARS['username']))
{
header("page2.html");
}
else {
header("page1.html");
}
Try
header('Location: page2.html')andheader('Location: page1.html')instead.