From 0133a004d4fba5895d09dd679835aefccffb9dc1 Mon Sep 17 00:00:00 2001 From: Pratik Date: Mon, 18 Nov 2024 03:06:17 +0530 Subject: [PATCH] feat: Added session expired logout feature --- FusionIIIT/Fusion/settings/common.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FusionIIIT/Fusion/settings/common.py b/FusionIIIT/Fusion/settings/common.py index d9017dd40..ee1618a24 100644 --- a/FusionIIIT/Fusion/settings/common.py +++ b/FusionIIIT/Fusion/settings/common.py @@ -284,3 +284,8 @@ CORS_ORIGIN_ALLOW_ALL = True ALLOW_PASS_RESET = True + +# session settings +SESSION_COOKIE_AGE = 15 * 60 +SESSION_EXPIRE_AT_BROWSER_CLOSE = True +SESSION_SAVE_EVERY_REQUEST = True \ No newline at end of file