Skip to main content

Module admin_session

Module admin_session 

Source
Expand description

The web admin’s browser sessions — the admin_sessions table.

The row is keyed by a hash of the session token, which never reaches this crate in the clear (AdminSession says why). Expiry is not a property of the sweep: webadmin::session checks both deadlines on every request, so an expired row is refused whether or not AdminSession::cleanup has run.

Structs§

AdminSession
One logged-in browser session of an crate::admin_user::AdminUser.
NewSession
Everything a new session row needs from its caller.