django - Cross-subdomain Admin login with login sharing -
i have sites 2 subdomains
- www.example.com
- test.example.com
both talk same db. both separate code bases.
i want admin login persist between 2 sites. (if logged in www, automatically logged in test , vice versa)
i have these settings in settings.py
csrf_cookie_domain = session_cookie_domain = ".example.com" secret_key ="theeisnospoonblahblah"
the admins seems talking, in weird way.
if go www.example.com , logged admin, if go test.example.com, instead of being logged in test.example.com admin,
i automatically logged out of www.example.com .
am missing settings in settings.py
Comments
Post a Comment