TIMEX
TIMEX

Reputation: 271594

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?

Upvotes: 2

Views: 129

Answers (1)

TIMEX
TIMEX

Reputation: 271594

I found the solution:

SESSION_COOKIE_DOMAIN = ".example.com"

Upvotes: 2

Related Questions