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.

Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.

Structs§

SessionMiddleware

Functions§

should_skip_session_tracking