New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-session-rsdb

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-session-rsdb

Rocket-Store session storage for express

  • 0.1.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

express-session-rsdb

Rocket-Store session storage for express

A very fast and lightweight file storage solution.

The storage provides garbage collection of expired sessions.

License downloads per month express-session-rsdb

Installation

	  $ npm install express-session-rsdb

Usage

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);

Options

optionDescription
data_storage_areaDirectory root for rocket-store data files. Defaults to 'rsdb' in OS specific tempory directory.
collectionname og collection where sessions are stored. Defaults to 'session'
purge_intervalTime 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,
    }),
  ...
}))  

Change log

  • 0.1.2: documentation

Keywords

FAQs

Package last updated on 29 Oct 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc