From 6a164d9717d688e583579f9ac0b057b8d6e609ba Mon Sep 17 00:00:00 2001 From: Chris Hines <chris.hines@monash.edu> Date: Wed, 8 Jul 2020 11:26:30 +1000 Subject: [PATCH] much longer sessions, incase errors occur we don't want immediate logout --- tes/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tes/__init__.py b/tes/__init__.py index 2e3f033..87bceb8 100644 --- a/tes/__init__.py +++ b/tes/__init__.py @@ -11,7 +11,7 @@ app.config['MESSAGES'] = '/messages' app.config['DEBUG'] = True app.config['SECRET_KEY'] = 'asdasfdfj' import datetime -app.config['PERMANENT_SESSION_LIFETIME'] = datetime.timedelta(seconds=30) +app.config['PERMANENT_SESSION_LIFETIME'] = datetime.timedelta(days=1) app.config['SESSION_REFRESH_EACH_REQUEST'] = True app.config['SESSION_COOKIE_NAME'] = 'tessession' app.config['SESSION_COOKIE_SECURE'] = True -- GitLab