I deployed my application to subdomain.domain.com (it only works on this subdomain). Everything works fine, except that from time to time users cannot log in to the application (when you try to enter the admin panel, the message "Looks like your browser isn't configured to accept cookies. Please enable cookies, reload this page, and try again" ). I noticed that restarting the web server fixes this problem for some time.
Does anyone have experience setting up a django project on a subdomain and can help me configure my application so that it works correctly without having to reset?
I tried setting SESSION_COOKIE_DOMAIN = 'subdomain.domain.com', but this did not solve the problem (maybe I did it wrong?)
I am using Django 1.1.1, Python 2.5.4 for this project. The project is deployed in a provider, which I use for other projects, and cookies work fine there. Other projects are also performed on subdomains and do not have SESSION_COOKIE_DOMAIN at all.
django cookies login subdomain
dzida
source share