1.. _api.webapp2_extras.sessions:
2
3Sessions
4========
5.. module:: webapp2_extras.sessions
6
7This module provides a lightweight but flexible session support for webapp2.
8
9It has three built-in backends: secure cookies, memcache and datastore.
10New backends can be added extending :class:`CustomBackendSessionFactory`.
11
12The session store can provide multiple sessions using different keys,
13even using different backends in the same request, through the method
14:meth:`SessionStore.get_session`. By default it returns a session using the
15default key from configuration.
16
17.. autodata:: default_config
18
19.. autoclass:: SessionStore
20   :members: __init__, get_backend, get_session, save_sessions
21
22.. autoclass:: SessionDict
23   :members: get_flashes, add_flash
24
25.. autoclass:: SecureCookieSessionFactory
26
27.. autoclass:: CustomBackendSessionFactory
28
29.. autofunction:: get_store
30.. autofunction:: set_store
31