Express middleware for storing sessions in Redis. Current stable version 0.3.4, last updated in 2016 with no recent releases. Maintains session data as JSON in Redis, supports custom cookie names, expiration, and existing Redis clients. Lightweight alternative to connect-redis, but lacks TypeScript definitions and modern maintenance.
npm install node-redis-sessionNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic Express app using node-redis-session with default Redis connection on localhost:6379.
Ensure cookieParser is used before redisSession.
Pass redisClient option: redisSession({ redisClient: myClient })Set cookieOptions: { httpOnly: true, secure: true } when using HTTPS.Start Redis server or specify correct redisOptions: redisSession({ redisOptions: [6379, 'your-host', { auth_pass: 'password' }] })App.use cookieParser() and redisSession() before defining routes.