#2548: [patch] Add set/get_expires methods and expires property to sessions
------------------------+---------------------------------------------------
Reporter: Tsume | Owner: nobody
Status: new | Component: Contrib apps
Version: | Resolution:
Keywords: sessions | Stage: Accepted
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
------------------------+---------------------------------------------------
Comment (by berto):
The last patch does not apply cleanly on the trunk, but that lead me to
finding `SESSION_SAVE_EVERY_REQUEST`. I was looking to solve the idle
timeout problem where a session expires if a user does not access a site
in a certain amount of time.
When used with `SESSION_COOKIE_AGE`, I solved my problem. I have added
this to my settings.py:
{{{
SESSION_SAVE_EVERY_REQUEST = True
SESSION_COOKIE_AGE = 1800 # 30 minutes
}}}
This patch seemed to cover more than just idle timeout by the end of the
thread, but Django may be able to satisfy all use-cases without this
patch.
--
Ticket URL: <http://code.djangoproject.com/ticket/2548#comment:24>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---