I have a site with some cookies issues where going to a non-www URL will set cookies that prevents customers from logging in. I have found other questions that refer to the cookies settings as the solution, but this isn't working for me. So...
exmaple.com/login
requested ->
cookie set for .example.com
. This prevents logins.
www.exmaple.com/login
requested ->
cookie set for .www.example.com
. This works.
I've tried settings the cookie path and cookie domain in the system config without any success. For now, I'm redirecting all non-www page request to the www URL to deal with this issue, but is there another way to do this on the Magento configuration-level instead of the web server?
We're using nginx, Redis, and on CE.