From a4fd6f380e63296c713fab33f57f4974b2b6b74e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Wed, 14 Feb 2018 14:00:15 +0100 Subject: [PATCH] Added expires option for mongo_configs --- server/apps/admin.js | 2 +- server/config/mongo_config.example.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/apps/admin.js b/server/apps/admin.js index 70616731..89b7f3a6 100644 --- a/server/apps/admin.js +++ b/server/apps/admin.js @@ -45,7 +45,7 @@ app.use(session({ host: mongo_db_cred.host, port: 27017, collection: 'sessions', - expire: 86400 + expire: mongo_db_cred.expire }) })); // session secret app.use(passport.initialize()); diff --git a/server/config/mongo_config.example.js b/server/config/mongo_config.example.js index 04136292..99ffc8d4 100644 --- a/server/config/mongo_config.example.js +++ b/server/config/mongo_config.example.js @@ -4,6 +4,7 @@ var mongo_config = { users: 'users', host: 'localhost', port: '27017', + expire: 86400, }; module.exports = mongo_config;