Skip to main content

Module sessions

Module sessions 

Source

Structs§

ListSessionsParams
Parameters for listing sessions in the admin session viewer.
ListSessionsResult
Result of a paginated session list.
SessionConfig
Configuration for session lifecycle and cookie generation.
SessionListEntry
A session with joined user email, for admin list display. Omits token_hash — the admin UI must never expose session tokens.

Functions§

clear_session_cookie
Build a Set-Cookie header value that expires the session cookie.
generate_token
Generate a cryptographically random session token.
hash_token
Hash a session token with SHA-256.
parse_session_cookie
Extract the session token from a Cookie header value.
session_cookie
Build a Set-Cookie header value for the given session token.