From e643174f5f5a0b3b455706a74ee1b0011d3671c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Thu, 7 Jul 2022 21:10:46 +0200 Subject: [PATCH] =?UTF-8?q?Odhla=C5=A1ov=C3=A1n=C3=AD=20po=20zav=C5=99en?= =?UTF-8?q?=C3=AD=20prohl=C3=AD=C5=BEe=C4=8De?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mamweb/settings_common.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mamweb/settings_common.py b/mamweb/settings_common.py index 54e0c6f1..fe2fe3fd 100644 --- a/mamweb/settings_common.py +++ b/mamweb/settings_common.py @@ -48,6 +48,11 @@ STATICFILES_FINDERS = ( LOGIN_URL = 'login' LOGIN_REDIRECT_URL = 'profil' +# Odhlášení po zavření prohlížeče +# (pozor nefunguje na firefox se znovuotevíráním oken po startu firefoxu) +# default je False a SESSION_COOKIE_AGE = 3600*24*14 = 2 týdny +SESSION_EXPIRE_AT_BROWSER_CLOSE = True + # Modules configuration AUTHENTICATION_BACKENDS = (