I want to let the same user session span across:
- site.com
- sub1.site.com
- sub2.site.com
I got this to work in production by setting SESSION_COOKIE_DOMAIN
to ".site.com", but it doesn't work for me on localhost/dev servers. How do you get it to work for localhost sub-domains? When I change the SESSION_COOKIE_DOMAIN
on the dev server to the production website domain or ".localhost", django auth logins completely stop working (I'm unable to ever login, no cookie is created on localhost).