Django tutorials not working with Apache installed on Ubuntu

On the production server, I cannot log into my site. I know this is some kind of Django bug with MD5 crypto or something like that, but unfortunately I can't remember what to do. I've been looking for an answer since noon, but I can't find this site where this issue has been explained.

You know how I can make sessions work.

+2


a source to share


1 answer


In response to this bit of comments

Sorry, but problems otherwise. i am using subdomains like pl.domain and uk.domain and domain. The user has only logged into one subdomain, but I want to make it registered on the entire website. Is it possible? - Thomas



you need to allow cross-domain sessions that are not specific to the subdomain. By default, Django will give you different sessions for bar.example.com and foo.example.com.

In your settings.py file, set SESSION_COOKIE_DOMAIN to .domain.tld (don't forget the leading point!) And you will be sorted.

+3


a source







All Articles