Help with weird setcookie() behavior
Posted: Sun Aug 24, 2008 9:42 pm
Hello guys, I'm trying to set a user authentication cookie and im getting some odd errors.
basically this is my command for setting the cookies: setcookie("auth", "1", 0, "/", "domain.com", 0);
and when i store that in a variable it returns true. Hoewver, in $_COOKIE['auth'] the cookie is never set. and when i go to view cookies in my browser it doesn't show up. Help?
basically this is my command for setting the cookies: setcookie("auth", "1", 0, "/", "domain.com", 0);
and when i store that in a variable it returns true. Hoewver, in $_COOKIE['auth'] the cookie is never set. and when i go to view cookies in my browser it doesn't show up. Help?