Skip to main content

SecureCookieSession

Base class for sessions based on signed cookies. This session backend will set the modified and accessed attributes. It cannot reliably track whether a session is new (vs. empty), so new remains hard coded to False.

Attributes​

AttributeTypeDescription
modified= FalseWhen data is changed, this is set to "True". Only the session dictionary itself is tracked; if the session contains mutable data (for example a nested dict) then this must be set to "True" manually when modifying that data. The session cookie will only be written to the response if this is "True".

Constructor​

Signature​

def SecureCookieSession(
initial: c.Mapping[str, t.Any]| None = None
) - > null

Parameters​

NameTypeDescription
initial`c.Mapping[str, t.Any]None` = None

Signature​

def SecureCookieSession(
initial: c.Mapping[str, t.Any]| None = None
) - > null

Parameters​

NameTypeDescription
initial`c.Mapping[str, t.Any]None` = None