Refactored session interface

This commit is contained in:
Armin Ronacher 2011-07-07 11:27:22 +02:00
parent 1a61b12dbf
commit 0fccfe711f
6 changed files with 59 additions and 49 deletions

View file

@ -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