Merge branch 'master' into develop

This commit is contained in:
barisusakli
2017-04-16 14:48:00 -04:00
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,