Why is it that if I create a cookie on www.example.com and check it on example.com, the cookie doesn\'t exist there? I am planning to just use .htaccess redirec
because php translates www.mydomain.com differently from mydomain.com. If the domains are not 100% identical the cookie wont match.
And I'm sure the browser also looks for 100% match of the domain name before allowing servers to overwrite them.
Just use .htaccess to redirect. It's the only SURE way to tackle this in all browsers.