#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: 1
Needs_tests: 1 | Needs_better_patch: 0
------------------------+---------------------------------------------------
Changes (by [EMAIL PROTECTED]):
* cc: [EMAIL PROTECTED] (added)
* needs_better_patch: 1 => 0
Comment:
Now it looks complete to me. Both "remember me" and slashdot like "public
terminal" features is possible now.
Updated API: added set_life to !SessionWrapper. It takes an integer,
number of seconds for which the session should be valid. It can also take
django.contrib.session.models.TILL_BROWSER_CLOSE, that will quell the
session at the close of browser. Calling set_life will overwrite the
global/default session expiry policy.
Somebody please review and test, and set "patch needs improvements" to
false.
--
Ticket URL: <http://code.djangoproject.com/ticket/2548#comment:15>
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
-~----------~----~----~----~------~----~------~--~---