Changes between Version 2 and Version 4 of Ticket #32088


Ignore:
Timestamp:
Oct 10, 2020, 9:20:55 AM (4 years ago)
Author:
Nate Pinchot
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32088

    • Property Summary Django Database Sessions - Can't Retrieve expire_dateDjango Database Sessions - Can't Retrieve expire_date from request.session (SessionStore)
  • Ticket #32088 – Description

    v2 v4  
    1 For Django database sessions, there is no way to retrieve the datetime that the session will expire without directly querying the model. The model stores this value in the `expire_date` field, but it is not able to be retrieved from the session (i.e. `request.session`) object. This makes it complicated to implement sliding expiration sessions if the sessions are not being modified by some other means.
     1For Django database sessions, there is no way to retrieve the datetime that the session will expire without directly querying the model. The model stores this value in the `expire_date` field, but it is not able to be retrieved from the session (i.e. `request.session` SessionStore) object. This makes it complicated to implement sliding expiration sessions if the sessions are not being modified by some other means.
    22
    33Of course, we could set `SESSION_SAVE_EVERY_REQUEST = True` to cause the session to be modified on every request, but this is inefficient.
Back to Top