Skip to content
Snippets Groups Projects
Commit 4194ef02 authored by Dennis Ahrens's avatar Dennis Ahrens
Browse files

Tell developer about SESSION_EXPIRE_AT_BROWSER_CLOSE

parent c97862d7
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,7 @@ def session_lifetime(app_configs, **kwargs): ...@@ -129,7 +129,7 @@ def session_lifetime(app_configs, **kwargs):
max_wanted = 60 * 60 # seconds max_wanted = 60 * 60 # seconds
if conf.settings.SESSION_COOKIE_AGE > max_wanted: if conf.settings.SESSION_COOKIE_AGE > max_wanted:
errors.append(Error( 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, obj=conf.settings,
)) ))
return errors return errors
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment