From 9818a957855bd00b8d299455ac602bf8b9bbecc0 Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Mon, 20 Feb 2017 11:31:41 +0000 Subject: [PATCH] set session timeout to 20 hours this way if someone does some work in the evening, when they come in next morning they'll still be logged in. but if someone does stuff in the morning and then leaves notify, they'll be kicked out by the next day unless they have an auto-refreshing page like the dashboard open --- app/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/config.py b/app/config.py index 0c2fe3361..7bad978ef 100644 --- a/app/config.py +++ b/app/config.py @@ -38,7 +38,7 @@ class Config(object): NOTIFY_APP_NAME = 'admin' NOTIFY_LOG_LEVEL = 'DEBUG' NOTIFY_LOG_PATH = '/var/log/notify/application.log' - PERMANENT_SESSION_LIFETIME = 3600 # seconds + PERMANENT_SESSION_LIFETIME = 20 * 60 * 60 # 20 hours REMEMBER_COOKIE_DURATION = timedelta(days=1) REMEMBER_COOKIE_HTTPONLY = True REMEMBER_COOKIE_NAME = 'notify_admin_remember_me'