In Django's settings I can specify the domain that is used for session's cookie - like it is stated here. It's quite useful for me, as I have subdomains defined that should share the cookies with master domain - so I define the SESSION_COOKIE_DOMAIN = '.domain.com'
.
What I bumped into now is the requirement to serve many domains - like domain1.com
and domain2.com
- and they should share the same session/cookie data.
I think I can do it in one of 2 ways: One would be to start 2 instances of the application, where one would be responsible for serving one domain and other one for serving second one.
Or maybe it's a way to set 2 cookies for both domains at once?