#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            |               Resolution:
     Keywords:                    |             Triage Stage:  Unreviewed
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+--------------------------------------

Comment (by Pallav Parikh):

 Replying to [ticket:32088 Nate Pinchot]:
 > 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.

 what does `session object` represent here, is it `request.session` ?
 can you please specify more details.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32088#comment:1>
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/066.ea8993549cd186f73b1c17402f9630d0%40djangoproject.com.

Reply via email to