#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 SmileyChris):
Replying to [comment:24 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.
It does now :)
> 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.
This patch doesn't really deal with idle timeout any more than sessions
currently do. The solution you found is probably the best way to solve
your problem.
What this patch ''does'' deal with is setting individual expiry for a
session, rather than only providing a global setting. The main use that
comes to mind for me (for which Django can not handle very well) is making
"Keep me logged in" an option at the user level.
--
Ticket URL: <http://code.djangoproject.com/ticket/2548#comment:26>
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
-~----------~----~----~----~------~----~------~--~---