'In Django, how do I make my sessions persist through http://example.com and http://www.example.com?
If I set a session in example.com, it doesn't work on www.example.com. I'd like all subdomains, and all www, to be treated as one big thing.
example.com and all its subdomains should have all the session cookies of everything.
Do I change this in Apache2?
Solution 1:[1]
I found the solution:
SESSION_COOKIE_DOMAIN = ".example.com"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | vinzee |
