Skip to content

mengxy/filestore

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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')(express);
var filedir = __dirname + '/.sessions';
app.use(express.session({secret: 'A secret', store: new FileStore(filedir)}));

About

A File Session Store for connect.session

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%