Skip to main content

Module session

Module session 

Source
Expand description

Server-side session management for the OAuth browser login flow.

Sessions are stored server-side and identified by a cryptographic cookie. Cookie attributes: HttpOnly, Secure, SameSite=Lax.

Structs§

Session
A server-side session for an authenticated user.
SessionStore
Session store with sweeping support.

Constants§

SESSION_COOKIE_NAME

Functions§

clear_session_cookie
Build a Set-Cookie header that clears the session.
extract_session_id
Extract session ID from request cookies.
session_cookie
Build a Set-Cookie header value for the session.