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!
Cookie is set but not returning
Moderator: General Moderators
Re: Cookie is set but not returning
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
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.