#2548: [patch] Add set/get_expires methods and expires property to sessions
------------------------+---------------------------------------------------
Reporter: Tsume | Owner: adrian
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):
The default session expiry uses the same method I went for - as long as
the session is accessed or written to, it won't expire.
Setting a *fixed* age (what I called "life") which you are doing is
interesting and perhaps useful, but different than the global method which
extends the session's life every time the session is used. My patch does
not accomplish your behaviour, hence why I suggested a patch which
provided the functionality of both may be useful.
Perhaps with a `'_fixed_age'` session variable it would be possible to
achieve both behaviours without too much code overhead.
--
Ticket URL: <http://code.djangoproject.com/ticket/2548#comment:21>
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
-~----------~----~----~----~------~----~------~--~---