session-glint

1.0.1 • Public • Published

session-glint

Glint Adapter Session Store for Connect and Express

install

npm install session-glint

use

express or connect integration

var session = require('express-session');
var GlintStore = require('session-glint')(session);
 
app.use(session({
    secret: 'foo',
    store: new GlintStore(options)
}));

options

var Adapter = require('glint-adapter');
var fsa = require('glint-adapter-fs');
var adapter = Adapter(fsa).db('glint').type('session');
 
app.use(session({
    store: new GlintStore({
      adapter: adapter,
      // TODO
      ttl: 14 * 24 * 60 * 60, // = 14 days. in seconds
      autoRemove: true, // automatically remove the session object after the `ttl` time
      autoRemoveInterval: 60 // check interval for removal in minutes
    })
}));

test

TODO

license

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i session-glint

Weekly Downloads

2

Version

1.0.1

License

none

Last publish

Collaborators

  • andineck