deck icon indicating copy to clipboard operation
deck copied to clipboard

Session may be extended indefinitely

Open sevdog opened this issue 4 years ago • 1 comments

Since qsessions uses a custom session object which is altered every time User-Agent or IP change there is a side-effect due to how base Django session engine works.

Upon save session engine changes expiry date by calling get_expiry_date (which without any arguments just extends session duration by its maximum length).

If, by any reason, a user with an active session changes User-Agent (ie: automatic updates) or IP (ie: dynamic IP) more frequently than configured session duration the session will never expire since it is saved upon every change.

sevdog avatar Jul 23 '21 15:07 sevdog

Don't core Django sessions do the same thing?

triopter avatar Feb 03 '25 21:02 triopter