I have a strange error with django sessions in my application: several times (about 10 times for ~ 20,000 per day) the user session information is deleted. I followed it through the log files: on page A there is information for the user's session, after which he submits the form, and on the next page his session is empty. I tried two types of storage: memcached + db and db, and this problem is for both of them. I tried to reproduce these scenarios, but everything works as expected, as I said, this is very rare. I also checked that this problem exists for different users, and for them it does not play every time. I have no idea how to catch the root cause, and I don't know what else stands here as a description. If anyone has any ideas, please let me know. If this is important, I run my application using django 1.2 + FastCGI. Thank you
UPD: I checked and see that the session key from use does not change during two consecutive requests, the first request has the actual state of the session, and in the second session variables are associated with an empty one.
source share