Added support for long running sessions. This closes #16.

This commit is contained in:
Armin Ronacher 2010-04-27 14:32:09 +02:00
parent 2ba88eefb5
commit 36717b0273
4 changed files with 62 additions and 5 deletions

View file

@ -174,6 +174,13 @@ To access the current session you can use the :class:`session` object:
# so mark it as modified yourself
session.modified = True
.. attribute:: permanent
If set to `True` the session life for
:attr:`~flask.Flask.permanent_session_lifetime` seconds. The
default is 31 days. If set to `False` (which is the default) the
session will be deleted when the user closes the browser.
Application Globals
-------------------