Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
express-session-rsdb
Advanced tools
Rocket-Store session storage for express
A very fast and lightweight file storage solution.
The storage provides garbage collection of expired sessions.
$ npm install express-session-rsdb
const express = require('express');
const session = require('express-session');
const sessionStore = require('express-session-rsdb');
const app = express()
app.use(session({
store: new sessionStore(),
secret: "The secret to life is meaningless unless you discover it yourself",
resave: false,
saveUninitialized: true,
cookie: { secure: false, maxAge: 1800 },
}))
...
app.listen(3000);
option | Description |
---|---|
data_storage_area | Directory root for rocket-store data files. Defaults to 'rsdb' in OS specific tempory directory. |
collection | name og collection where sessions are stored. Defaults to 'session' |
purge_interval | Time between automated garbage collection of expired sessions, in seconds. Garbage collection is disabled by setting this to 0. |
app.use(session({
store: new sessionStore({
data_storage_area: "./rsdb",
collection: "session",
purge_interval: 700,
}),
...
}))
FAQs
Rocket-Store session storage for express
The npm package express-session-rsdb receives a total of 4 weekly downloads. As such, express-session-rsdb popularity was classified as not popular.
We found that express-session-rsdb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.