Skip to content
Permalink
Browse files

Sets cookie max-age to 90 days

  • Loading branch information...
davidmerfield committed Oct 8, 2019
1 parent 2bc6356 commit 702e2659072ad0e1421d751213a8b889fa0d5328
Showing with 3 additions and 4 deletions.
  1. +3 −4 app/session.js
@@ -3,15 +3,14 @@ var config = require("config");
var session = require("express-session");
var Store = require("connect-redis")(session);

// Session settings
// It is important that session
// comes before the cache so we
// know what to serve to which user
// Session settings. It is important that session
// comes before the cache so we know what to serve
var sessionOptions = {
secret: config.session.secret,
saveUninitialized: false,
resave: false,
proxy: true,
maxAge: 1000 * 60 * 60 * 24 * 90, // 90 days in ms
cookie: {
httpOnly: true
},

0 comments on commit 702e265

Please sign in to comment.
You can’t perform that action at this time.