#32088: Django Database Sessions - Can't Retrieve expire_date
--------------------------------------------+------------------------
               Reporter:  Nate Pinchot      |          Owner:  nobody
                   Type:  New feature       |         Status:  new
              Component:  contrib.sessions  |        Version:  3.1
               Severity:  Normal            |       Keywords:
           Triage Stage:  Unreviewed        |      Has patch:  0
    Needs documentation:  0                 |    Needs tests:  0
Patch needs improvement:  0                 |  Easy pickings:  0
                  UI/UX:  0                 |
--------------------------------------------+------------------------
 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 object. This makes it complicated to
 implement sliding expiration sessions if the sessions are not being
 modified by some other means.

 Of course, we could set `SESSION_SAVE_EVERY_REQUEST = True` to cause the
 session to be modified on every request, but this is inefficient.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32088>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.2b0f20fe587d8bbb36d9c40d31160fcc%40djangoproject.com.

Reply via email to