Django Tip: Cross Domain Cookies
If you use the Django Auth Framework you may need to know the existence of this constant that you can set in the settings.py of your project:
SESSION_COOKIE_DOMAIN = ".yourdomain.com"when you login, your cookies session will be set to be valid on every subdomain, so you will be still logged in www.yourdomain.com, yourdomain.com, and any every subdomains.yourdomain.com.
Donate 1 euro, buy me a coffee, I need it to write more posts! Thanks ;) Tags: Auth, Django, django admin, Python, SESSION, subdomain