0.2.0 • Published 9 years ago

loki-session v0.2.0

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

loki-session 0.2.0

A session store for express-session powered by Loki.js. Requires Loki.js 1.1.x

##Installation##

NPM

##Todo##

  • Unit Tests

##Example##

var express = require('express'),
    session = require('express-session'),
    store = require('loki-session'),
    app = express();

app.use(session({
    secret: '34PQ2R89t32kRxwF5QB6r4EmZQZGf73pek5TuSFae565FX8bT6GPfHSZ9t659ZYq',
    name: 'loki-session',
    resave: true,
    store: store(__dirname + '/bin/db.json'),
    saveUninitialized: true
}));

app.use(function(req, res) {
    res.send('Session store powered by loki-session!');
});

app.listen(3000);