{"repo":"robinfehr/sessionstore","free":true,"listed":false,"github":"https://github.com/robinfehr/sessionstore","clone":"git clone https://github.com/robinfehr/sessionstore.git","description":"Sessionstore is a node.js module for multiple databases. It can be very useful if you work with express or connect.","language":"JavaScript","stars":53,"topics":["sessionstore","database","javascript","express","connect","multiple-databases"],"license":"MIT","category":"databases-storage","readme_excerpt":"Introduction Sessionstore is a node.js module for multiple databases. It can be very useful if you work with express or connect. Installation $ npm install sessionstore Usage Connecting to in-memory var sessionstore = require('sessionstore'); var express = require('express'); var expressSession = require('express-session'); var app = express(); app.use(expressSession({ store: sessionstore.createSessionStore() })); Connecting to mongodb var sessionstore = require('sessionstore'); var express = require('express'); var expressSession = require('express-session'); var app = express(); app.use(expressSession({ store: sessionstore.createSessionStore({ type: 'mongodb', host: 'localhost', // optional port: 27017, // optional dbName: 'sessionDb', // optional collectionName: 'sessions',// optional timeout: 10000 // optional // authSource: 'authedicationDatabase', // optional // username: 'technicalDbUser', // optional // password: 'secret' // optional // url: 'mongodb://user:pass@host:port/db?opts // optional }) })); Connecting to tingodb var sessionstore = require('sessionstore'); var express = require('express'); var expressSession = require('express-session'); var app = express(); app.use(expressSession({ store: sessionstore.createSessionStore({ type: 'tingodb', dbPath: dirname + '/', // optional collectionName: 'sessions',// optional timeout: 10000 // optional }) })); Connecting to couchdb var sessionstore = require('sessionstore'); var express = require('express'); var expressSess","default_branch":null,"files":null,"tree":[],"storefront":"/r/robinfehr","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/robinfehr/sessionstore/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}