Added support for long running sessions. This closes #16.
This commit is contained in:
parent
2ba88eefb5
commit
36717b0273
4 changed files with 62 additions and 5 deletions
|
|
@ -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
|
||||
-------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue