Opened 11 years ago

Closed 11 years ago

#10760 closed (invalid)

Some session data gets lost between multiple concurrent request

Reported by: bogdan2412 Owned by: nobody
Component: contrib.sessions Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


When a lot of concurrent requests are made by the same user and each request modifies something in the session, some of the data gets lost.

A more precise example: I maintain a list of selected items for each session and each (ajax) request adds or removes a certain object to/from that list. When the user rapidly selects a lot of objects and each request returns success, after a refresh some objects are missing from the list. I need a way to lock sessions for these requests.

I'm not sure if this is considered a bug or not. If it's not, I'd appreciate another solution to this (the only thing i could think of is making a separate database table for stuff like this, but i don't like having to, or know how to, handle session expiration in this case).

Change History (1)

comment:1 Changed 11 years ago by Alex Gaynor

Resolution: invalid
Status: newclosed

Django saves the session at the end of every request, if you want to save it more quickly you need to do taht in your own code.

Note: See TracTickets for help on using tickets.
Back to Top