Skip to content
This repository has been archived by the owner on Feb 15, 2021. It is now read-only.

Commit

Permalink
session lifetime 7days
Browse files Browse the repository at this point in the history
  • Loading branch information
www-data committed Mar 13, 2015
1 parent 525bc9d commit 3e80688
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/server.js
Expand Up @@ -83,6 +83,7 @@ app.configure(function() {
app.use(express.cookieParser());
app.use(express.bodyParser());
app.use(express.session({store: sessionStore, secret: nconf.get('app:secret') }));
app.use(express.session({store: sessionStore, secret: nconf.get('app:secret'), cookie: {maxAge: new Date(Date.now() + 604800000)} }));
app.use(passport.initialize());
app.use(passport.session());
app.use(app.router);
Expand Down

0 comments on commit 3e80688

Please sign in to comment.