PHP: Cookie only sent to http://www.xxx.com and NOT http://xxx.com
- by Axel
Hi,
I have a php login which sets 2 cookies once some one login. the problem is that if you login from : http://www.mydomain.com and you go to http://mydomain.com you will find your self not logged in, I think that's because the browser only send the cookies to the first syntax.
It's only one domain, the difference is the www. before the domain name, so how to set cookies to the whole domain whatever there is www. or not ?
Thanks