I've written a cookie for my domain + subdomain:
setcookie("visitor", $visitor, time()+60*60*24*365, "/", ".mydomain.net");
but when I try to read it from within subdomain.mydomain.net, it's empty. Could it be that $_COOKIE tries to read the cookie for the subdomain instead of reading the global one? How do I fix this?
Happens in both Firefox and IE8