This commit is contained in:
barisusakli
2017-04-16 14:46:02 -04:00
parent 185b6e5c8e
commit 65a65b19c0
5 changed files with 30 additions and 11 deletions

View File

@@ -166,9 +166,7 @@ function setupFavicon(app) {
}
function setupCookie() {
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 ttl = meta.getSessionTTLSeconds() * 1000;
var cookie = {
maxAge: ttl,