[BangPypers] Django - share login sessions on sub-domain

Ansal ansalansari at gmail.com
Sun Aug 14 17:43:30 CEST 2011


Hi,
I have a django app running on my domain. I have another django app running
on its subdomain. How can I share the same login session on this subdomain?
Some websites are saying to set SESSION_COOKIE_DOMAIN = '.mydomain.com' in
settings.py in the first app. But it won't work. If i set the same in sub
domain's app, I am automatically getting logged out. So, what should I do to
get this done?

Thanks in advance,
Ansal.


More information about the BangPypers mailing list