Add sliding session renewal and periodic token rotation
This commit is contained in:
@@ -35,6 +35,7 @@ The app expects a MariaDB instance configured through environment variables.
|
||||
### Session and Cookie Env Vars
|
||||
|
||||
- `SESSION_TTL_SECONDS` (default: `86400`)
|
||||
- `SESSION_ROTATE_SECONDS` (default: `3600`, rotate active session token when exceeded)
|
||||
- `SESSION_COOKIE_SECURE` (default: `false`, set `true` in production HTTPS)
|
||||
- `REQUIRE_CSRF` (default: `false`, checks same-origin/same-referer for write routes when enabled)
|
||||
- `LOGIN_MAX_ATTEMPTS` (default: `5`)
|
||||
|
||||
Reference in New Issue
Block a user