Home | History | Annotate | Download | only in webapp2_extras
      1 .. _api.webapp2_extras.sessions:
      2 
      3 Sessions
      4 ========
      5 .. module:: webapp2_extras.sessions
      6 
      7 This module provides a lightweight but flexible session support for webapp2.
      8 
      9 It has three built-in backends: secure cookies, memcache and datastore.
     10 New backends can be added extending :class:`CustomBackendSessionFactory`.
     11 
     12 The session store can provide multiple sessions using different keys,
     13 even using different backends in the same request, through the method
     14 :meth:`SessionStore.get_session`. By default it returns a session using the
     15 default 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