Skip to content

Instantly share code, notes, and snippets.

@baudehlo
Created October 27, 2014 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baudehlo/3f7b964efef11b242a93 to your computer and use it in GitHub Desktop.
Save baudehlo/3f7b964efef11b242a93 to your computer and use it in GitHub Desktop.
app.use(express.session({
secret: "Ilovegoats",
store: new icsession(),
key: "SESSIONID",
proxy: mode != 'development',
cookie: {
path: '/',
httpOnly: true,
secure: mode != 'development',
maxAge: app.get('session_length') * 60 * 1000
}
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment