OpenQuizz
Une application de gestion des contenus pédagogiques
SecureCookieSessionInterface Class Reference
Inheritance diagram for SecureCookieSessionInterface:
Collaboration diagram for SecureCookieSessionInterface:

Public Member Functions

def get_signing_serializer (self, app)
 
def open_session (self, app, request)
 
def save_session (self, app, session, response)
 
- Public Member Functions inherited from SessionInterface
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
 
- Static Public Attributes inherited from SessionInterface
 null_session_class
 
 pickle_based
 

Detailed Description

The default session interface that stores sessions in signed cookies
through the :mod:`itsdangerous` module.

Member Function Documentation

◆ get_signing_serializer()

def get_signing_serializer (   self,
  app 
)

◆ open_session()

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.

◆ save_session()

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.

Field Documentation

◆ digest_method

digest_method
static

◆ key_derivation

key_derivation
static

◆ salt

salt
static

◆ serializer

serializer
static

◆ session_class

session_class
static

The documentation for this class was generated from the following file: