Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

File session store for Connect

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 example
Octocat-spinner-32 lib
Octocat-spinner-32 README.markdown
Octocat-spinner-32 package.json
README.markdown

connect-session-file

Installation

Options

- `path` storage path (optional, default: process.env.TMPDIR) 
- `prefix` filename prefix (optional, default: `file-store-`)
- `useAsync` use asynchronous file operations (optional, default: false)
- `printDebug` prints debug output (optional, default: false)
- `reapInterval` interval between removing stale sessions (optional, default: 600000 (10 mins), disable: -1 )
- `maxAge` maximum age of sessions before removal (optional, default: 600000*3 (30 mins) )

Example

See example/app.js

With express:

var FileStore = require('connect-session-file');

app.use(express.session({
    secret: settings.cookie_secret,
    store: new FileSessionStore({
      db: settings.db
    })
  }));

Tests

See Also

https://github.com/kcbanner/connect-mongo

https://github.com/bartt/connect-session-mongo

Something went wrong with that request. Please try again.