OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | get_signing_serializer (self, app) |
def | open_session (self, app, request) |
def | save_session (self, app, session, response) |
![]() | |
def | make_null_session (self, app) |
def | is_null_session (self, obj) |
def | get_cookie_domain (self, app) |
def | get_cookie_path (self, app) |
def | get_cookie_httponly (self, app) |
def | get_cookie_secure (self, app) |
def | get_cookie_samesite (self, app) |
def | get_expiration_time (self, app, session) |
def | should_set_cookie (self, app, session) |
Static Public Attributes | |
salt | |
digest_method | |
key_derivation | |
serializer | |
session_class | |
![]() | |
null_session_class | |
pickle_based | |
The default session interface that stores sessions in signed cookies through the :mod:`itsdangerous` module.
def get_signing_serializer | ( | self, | |
app | |||
) |
def open_session | ( | self, | |
app, | |||
request | |||
) |
This method has to be implemented and must either return ``None`` in case the loading failed because of a configuration error or an instance of a session object which implements a dictionary like interface + the methods and attributes on :class:`SessionMixin`.
Reimplemented from SessionInterface.
def save_session | ( | self, | |
app, | |||
session, | |||
response | |||
) |
This is called for actual sessions returned by :meth:`open_session` at the end of the request. This is still called during a request context so if you absolutely need access to the request you can do that.
Reimplemented from SessionInterface.
|
static |
|
static |
|
static |
|
static |
|
static |