Skip to main content

Module session

Module session 

Source
Expand description

Session-establishment middleware.

SessionMiddleware resolves or mints the per-request session: it skips untracked paths, short-circuits detected bots into anonymous contexts, validates an existing JWT session, and refreshes or recreates the session when the token is stale, issuing a Set-Cookie for newly minted tokens.

Structs§

SessionMiddleware

Functions§

should_skip_session_tracking