Umbral Sessions
Official by Umbral contributorssigned cookies, DB/Redis stores, lazy session data
About
HTTP forgets you the moment the response is sent. Sessions are how your app remembers — the signed-in user, a half-filled cart, a flash message that should survive one redirect. Umbral Sessions gives you a server-side store (persisted through the ORM, so no extra infrastructure to stand up) plus the cookie middleware that ties each browser to its row, with secure defaults already switched on.
Install
Wire it up
Add it before anything that reads the session — auth, in particular.
use *;
use SessionsPlugin;
let app = builder
.database
.plugin
.plugin // reads the session
.build?;
Target: stash something across requests
The session is a typed key/value bag that outlives a single request.
use Session;
async
What you get
- DB-backed session store — no Redis required to start
- Cookie middleware with secure, HttpOnly defaults
- The foundation umbral-auth's login / logout builds on
- Redis-backed store on the roadmap for horizontal scaling
Usage
Register `SessionsPlugin` before any plugin that reads the session (auth reads it on every request). The default store persists sessions through the ORM, so there's nothing extra to deploy.
cargo add umbral-sessions
Feature tracker
Per-feature shipping status, recorded in the directory.
Server-side sessions persisted through the ORM.
Signed cookie store for lightweight deployments.
Cookie handling with secure defaults.
Establish and tear down the authenticated session.
Shared session store for horizontal scaling.
Read without creating rows; persist only when data changes.
Optional renewal window plus max-session-age enforcement.
User-session revocation and expired-session cleanup command.
Compatibility
Declared support per Umbral version and database backend.
No compatibility rows declared yet.
Community notes
0 notes in the discussion thread.
No notes yet. Be the first to share how this plugin works for you.
Reported issues
Bugs and abuse reports filed against this plugin.
No open issues
No issues have been reported against this plugin. Track upstream bugs on the maintainer's tracker, or report a directory problem to the Umbral team.