#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 Amit Upadhyay <[EMAIL PROTECTED]>):
Replying to [comment:21 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.
I am not convinced, but understand the logic now. Its kind of session idle
timeout or something. This behavior was not obvious to me till this
discussion, are we sure other developers understand this? Was it a feature
and not a bug?
> Perhaps with a `'_fixed_age'` session variable it would be possible to
achieve both behaviours without too much code overhead.
I will give it a shot, but this will require further API changes, may be
extra optional parameter in set_session_age(seconds, absolute_life=True).
My concern is it will add to confusion.
--
Ticket URL: <http://code.djangoproject.com/ticket/2548#comment:22>
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
-~----------~----~----~----~------~----~------~--~---