From 14e7907e06913bf419140960828b35bd4c812204 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 26 Aug 2013 14:56:00 -0400 Subject: [PATCH] closed #201 --- src/webserver.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/webserver.js b/src/webserver.js index 23b1a7d652..8eb83f76aa 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -70,7 +70,10 @@ var express = require('express'), ttl: 60*60*24*14 }), secret: nconf.get('secret'), - key: 'express.sid' + key: 'express.sid', + cookie: { + maxAge: 60*60*24*30 // 30 days + } })); app.use(express.csrf()); app.use(function(req, res, next) {