From b1f0f8fa8bcc5e24bb96f827dd9410fa42ffe77d Mon Sep 17 00:00:00 2001 From: Dominic Lennon Date: Mon, 16 Jan 2017 14:52:25 +0000 Subject: [PATCH] Adding ttl value to the MongoStore options --- src/database/mongo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/database/mongo.js b/src/database/mongo.js index b91acde0cb..c9323df23a 100644 --- a/src/database/mongo.js +++ b/src/database/mongo.js @@ -139,7 +139,8 @@ } else if (nconf.get('mongo')) { sessionStore = require('connect-mongo')(session); module.sessionStore = new sessionStore({ - db: db + db: db, + ttl: ttl }); }