Skip to content

Commit

Permalink
Switch to cookiesession
Browse files Browse the repository at this point in the history
MemoryStore leaks memory, and is disabled for production use by nodejitsu.
  • Loading branch information
joeybaker committed Jul 16, 2013
1 parent 4ffb2b9 commit 6d984be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flatiron-passport.js
Expand Up @@ -15,8 +15,8 @@ exports.attach = function(options) {
options.secret = options.secret || 'keyboard cat';

// Add session support.
app.http.before.push(connect.cookieParser(options.secret));
app.http.before.push(connect.session());
app.http.before.push(connect.cookieParser());
app.http.before.push(connect.cookieSession({secret: options.secret, maxAge: 1000 * 60 * 60 * 24 * 30})); //default to 1 month
}

// Initialize passport.
Expand Down

0 comments on commit 6d984be

Please sign in to comment.