Skip to main content

Module sessions

Module sessions 

Source

Structs§

SessionConfig
Configuration for session lifecycle and cookie generation.

Functions§

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.