I have constant problem with cookies on my Django site which is set up on a subdomain. It works for a couple of days, then message 'your browser doesn't accept cookies'
appears on a login page. I need to restart my web server to make it work for a couple of next days and this cycle repeats.
This is really frustrating. I am not sure what am I doing wrong. I suspect that SESSION_COOKIE_DOMAIN might be set to a wrong value. What is the proper way to set it?
- SESSION_COOKIE_DOMAIN = 'subdomain.domain.com'
- SESSION_COOKIE_DOMAIN = '.domain.com'
- SESSION_COOKIE_DOMAIN = ''
- other?
Any help is appreciated. It behaves very strange for me (I mean that everything works after web server is restarted...). Maybe the problem lies in configuration of web server?
Looks like:
solved the problem.
Hope this helps someone.