Newline Proliferating Maniac
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

filestore

0.1.3 • Public • Published

A File Store, could use in connect.session

Implement all the method for connect.session

Every session store must implement the following methods

  • .get(sid, callback)
  • .set(sid, session, callback)
  • .destroy(sid, callback)

must Inherit from connect.session.Store.

Recommended methods include, but are not limited to:

  • .length(callback)
  • .clear(callback)

How to use

var FileStore = require('filestore').FileStore;
var filedir = __dirname + '/.sessions';
app.use(express.session({secret: 'A secret', store: new FileStore(filedir)}));

Keywords

none

Install

npm i filestore

DownloadsWeekly Downloads

5

Version

0.1.3

License

none

Last publish

Collaborators

  • avatar