So I’m creating a site where users must login. If the user wishes that the site remember his login, I set a cookie to remember this data. However, the cookie seems to be set for the site http://www.mysite.com. This seems to mean that if I visit my site with the address mysite.com (without the www.), the cookie can no longer be accessed. How do I make so that a cookie set on either site can be accessed by both sites?
Share
You don’t want to use both. Choose one, it’s better for SEO as well. I would personally just redirect through the htaccess to the www and keep it standard.