From 4194ef026f80e06ddef34457a9f53f74fd548ecd Mon Sep 17 00:00:00 2001 From: Dennis Ahrens <dennis.ahrens@hs-hannover.de> Date: Fri, 24 Nov 2017 12:54:26 +0100 Subject: [PATCH] Tell developer about SESSION_EXPIRE_AT_BROWSER_CLOSE --- ssoauth/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssoauth/checks.py b/ssoauth/checks.py index acf1d30..2c10050 100644 --- a/ssoauth/checks.py +++ b/ssoauth/checks.py @@ -129,7 +129,7 @@ def session_lifetime(app_configs, **kwargs): max_wanted = 60 * 60 # seconds if conf.settings.SESSION_COOKIE_AGE > max_wanted: errors.append(Error( - "Please reduce SESSION_COOKIE_AGE to at most {max_wanted}".format(**locals()), + "Please reduce SESSION_COOKIE_AGE to at most {max_wanted} or set SESSION_EXPIRE_AT_BROWSER_CLOSE = True".format(**locals()), obj=conf.settings, )) return errors -- GitLab