Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A File Session Store for connect.session
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
LICENSE.txt
README.md
index.js
package.json

README.md

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)}));
Something went wrong with that request. Please try again.