Django, SESSION_COOKIE_DOMAIN with multiple domains -


In Django, I have SESSION_COOKIE_DOMAIN set on my domain name. But I actually have the same site with two different domain names I would like to run with

With the SESSION_COOKIE_DOMAIN set, only the named domain allows the user to login, is it possible to login to both domain?

If you assign your session cookie domain to a "." Character This will allow you to manage the wildcard sub-domain and share a session cookie (login session) in many subdomains. Settings in the

 settings: \ "stackoverflow.com \" 

One of the cookies above can be shared at user 1.stackoverflow.com and user2.stackoverflow.com.

If you really want that the URL is different for the same site, do you want the same user to switch between two sites on a login session? Or do you want the ability to login two different users into the site from just two different URLs (which are not sub-domains?)


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -