Page 1 of 1

Cookie is set but not returning

Posted: Sun Feb 14, 2010 4:00 am
by centipede
I have a cookie set using:

setcookie("PHPENGINEUSER", $guid, (time()+2592000), "/", "modules/security");

I know it is set, I can see it in my cookies list in FireFox. But when I try to display it using:

$_COOKIE["PHPENGINEUSER"]

I get no results. Is this enough information to point out where my error is?

Thanks!

Re: Cookie is set but not returning

Posted: Sun Feb 14, 2010 4:20 am
by requinix
Are you sure $guid has a value? Might there be a problem with subdomains? Are you checking $_COOKIE after the page has been reloaded at least once?

Re: Cookie is set but not returning

Posted: Mon Feb 15, 2010 12:29 am
by centipede
There is a value showing when I check that cookie in Firefox. I have tried re-navigating to that page and I still get nothing when I try to display that cookie.