Django multiple sessions cookie domain for multiple subdomains
Just remove the SESSION_COOKIE_DOMAIN setting or set it to None. Django will automatically use the current domain.
My Django app handles multiple subdomains like "first.domain.com", "second.domain.com" etc.
My SESSION_COOKIE_DOMAIN is ".domain.com" to handle multiple subdomains.
So when I access my app from first.domain.com or second.domain.com, I can see the same session cookie from both subdomains.
So my question is; is it possible to set SESSION_COOKIE_DOMAIN to "first.domain.com" when it's being accessed from "first.domain.com" and "second.domain.com" when it's being accessed from "second.domain.com" ?