
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
session-memory-store
Advanced tools
A session store implementation for Express using node-cache.
Because the default store for express-session -- memory-cache will lead to a memory leak due to it havn't a suitable way to make them expire.
And this is why I make this project, for those who want to use in-memory session, also want them to auto expire.
The session is still storing in memory, you can't share the session with others process or other service.
It's highly not recommend to use it in production!
var express = require('express'),
session = require('express-session'),
cookieParser = require('cookie-parser');
// for express 4.0+
var MemoryStore = require('session-memory-store')(session);
// for express 4.0-
// var MemoryStore = require('session-memory-store')(express);
var app = module.exports = express();
app.use(cookieParser());
app.use(session({
name: 'JSESSION',
secret: 'my secret',
store: new MemoryStore(options)
}));
(Number) Defined how long each session will be expired. In second. Default: half a day, 60 * 60 * 12
(Number) Defined how long MemoryStore will check for expired. In second. Default: 10 minutes, 10 * 60
FAQs
Memory store for session that can auto check expired.
The npm package session-memory-store receives a total of 1,441 weekly downloads. As such, session-memory-store popularity was classified as popular.
We found that session-memory-store 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.