Expand description
Stateless dashboard session cookies (#2).
prospero_session=v1.<name>.<expires>.<mac>; the MAC binds the token name,
expiry and the first 16 bytes of the token’s current hash, so removing or
rotating a token invalidates its sessions on every replica with no store.
Constants§
- COOKIE_
NAME - Cookie name.
- SESSION_
TTL_ SECS - Fixed session lifetime (12 h).
Functions§
- clear_
cookie - A
Set-Cookievalue that deletes the session. - cookie_
value - The
prospero_sessionvalue from the request’sCookieheaders. - is_
https - Whether a TLS-terminating proxy reported HTTPS.
- same_
origin - Same-origin test for cookie-authenticated mutations.
- set_
cookie - A
Set-Cookievalue. - sign
- The cookie value for
entry, valid untilexpires_unix. - verify
- Verify a cookie value against the current tokens. Token names cannot contain
.and base64url has no., so the value splits unambiguously.