Narrowly Preventing Mayhem

    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

    Install

    npm i session-glint

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    none

    Last publish

    Collaborators

    • andineck