Skip to main content

Module session

Module session 

Source
Expand description

The session access the server half needs synchronously, and the keys session-backed properties persist under.

Functions§

crc32
The CRC-32 (IEEE 802.3) checksum of bytes, as PHP’s crc32() and zlib compute it.
csrf_token
The request’s CSRF token, or None on a route without a session.
current
The session of the request being handled, or None on a route without one.
exists
Whether the session holds a value for the key.
forget
Forgets a value, such as one that no longer fits its property.
get
Reads a value a session-backed property persisted, or None when the session has none.
property_key
The key a session-backed property persists under.
put
Writes a value a session-backed property persists.