forked from orbit-oss/flask
Refactored session interface
This commit is contained in:
parent
1a61b12dbf
commit
0fccfe711f
6 changed files with 59 additions and 49 deletions
25
docs/api.rst
25
docs/api.rst
|
|
@ -195,9 +195,34 @@ To access the current session you can use the :class:`session` object:
|
|||
session will be deleted when the user closes the browser.
|
||||
|
||||
|
||||
Session Interface
|
||||
-----------------
|
||||
|
||||
.. versionadded:: 0.7
|
||||
|
||||
The session interface provides a simple way to replace the session
|
||||
implementation that Flask is using.
|
||||
|
||||
.. currentmodule:: flask.sessions
|
||||
|
||||
.. autoclass:: SessionInterface
|
||||
:members:
|
||||
|
||||
.. autoclass:: SecureCookieSessionInterface
|
||||
:members:
|
||||
|
||||
.. autoclass:: NullSession
|
||||
:members:
|
||||
|
||||
.. autoclass:: SessionMixin
|
||||
:members:
|
||||
|
||||
|
||||
Application Globals
|
||||
-------------------
|
||||
|
||||
.. currentmodule:: flask
|
||||
|
||||
To share data that is valid for one request only from one function to
|
||||
another, a global variable is not good enough because it would break in
|
||||
threaded environments. Flask provides you with a special object that
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue