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
This commit is contained in:
Leo Hemsted
2017-02-20 11:31:41 +00:00
parent 1f679a95be
commit 9818a95785

View File

@@ -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'