I have a cookie that I've set on my site called "your-selected-location". I'm in FF and using firebug I can see that the cookie is set seemingly correctly and does not expire until next year and is stored in the root "/". However if I run the following code in very top of my PHP file it does not return the cookie value (which I can see in Firebug)
if (isset($_COOKIE[ 'your-selected-location' ]))
{
$cookieselectedlocation = $_COOKIE['your-selected-location'];
echo ("<hr>Your cookie is: $cookieselectedlocation<hr>");
}
I've also tried a direct echo:
echo $_COOKIE[ 'your-selected-location' ];
With no luck. Any thoughts? Thanks!
Chris
EDIT: Here's where it gets weirder: www.site.com/merchant_profile --> Cannot read cookies site.com/merchant_profile --> CAN read cookies