@radzor/session-manager
Server-side session management with pluggable stores (memory, Redis, PostgreSQL). Handles session creation, rotation, expiry, and signed cookie generation. Framework-agnostic.
Install
View source on GitHub →Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| store | 'memory' | 'redis' | 'postgres' | memory | Backing store for session data. |
| connection | string | — | Redis URL or PostgreSQL connection string. Required for redis and postgres stores. |
| secret* | string | — | Secret for signing session cookies (HMAC-SHA256).SESSION_SECRET |
| ttl | number | 86400 | Session lifetime in seconds (default: 24 hours). |
| cookieName | string | sid | Name of the session cookie. |
| secure | boolean | true | Set Secure flag on cookie (HTTPS only). Disable in development. |