views:

77

answers:

1

In production server I can't login to my website. I know that it is some bug of Django with MD5 crypt or something like that, but unfortunately I don't remember what I should do. I am searching the answer since half day, but I can't find this website where was explained this problem.

DO you know how I can do sessions working.

+1  A: 

In answer to this bit the comments

Sorry, but problems is otherwise. I am using subdomains like pl.domain and uk.domain and domain. User is only logged in one subdomain, but I want make it logged in all website. Is it possible? – Thomas

you need to allow cross-domain sessions that don't just refer to a subdomain. By default, Django will give you different sessions for bar.example.com and foo.example.com.

In your settings.py set SESSION_COOKIE_DOMAIN to .domain.tld (don't forget the leading dot!) and you'll be sorted.

stevejalim