fortune-session
This module is alpha quality.
Fortune.js-based session store for Express.
npm install --save fortune-session
const fortune = ;const store = ; const session = ;const fortuneSession = ; app;
fortuneSession(session, store, [collection])
session
—express-session
module.store
— Fortune.js store.collection
— optional, refers to collection/table with compatible schema, defaults to'session'
.
Schema
Specified collection/table must have the following schema:
sid
—String
, session id.data
—Object
, session data.
TODO
- Write tests.
License
MIT