From 185b6e5c8e123e8082ec55afc20968a445fdd890 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sun, 16 Apr 2017 14:31:49 -0400 Subject: [PATCH] #5600 --- src/database/redis.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/database/redis.js b/src/database/redis.js index 27394f7463..c8c420a3ee 100644 --- a/src/database/redis.js +++ b/src/database/redis.js @@ -60,9 +60,9 @@ var meta = require('../meta'); var sessionStore = require('connect-redis')(session); - var ttlDays = 1000 * 60 * 60 * 24 * (parseInt(meta.config.loginDays, 10) || 0); - var ttlSeconds = 1000 * (parseInt(meta.config.loginSeconds, 10) || 0); - var ttl = ttlSeconds || ttlDays || 1209600000; // Default to 14 days + var ttlDays = 60 * 60 * 24 * (parseInt(meta.config.loginDays, 10) || 0); + var ttlSeconds = (parseInt(meta.config.loginSeconds, 10) || 0); + var ttl = ttlSeconds || ttlDays || 1209600; // Default to 14 days module.sessionStore = new sessionStore({ client: module.client,