From 4b1d873bf87d5a3c3a5746d4e512a9210381d402 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 27 Aug 2022 23:54:31 +0100 Subject: [PATCH] Extend time for session cookies --- website/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/website/settings.py b/website/settings.py index 3700de0..41003eb 100644 --- a/website/settings.py +++ b/website/settings.py @@ -281,6 +281,7 @@ X_FRAME_OPTIONS = "DENY" SECURE_REFERRER_POLICY = "same-origin" SESSION_COOKIE_SECURE = not DEBUG +SESSION_COOKIE_AGE = 2419200 # About a month CSRF_COOKIE_SECURE = not DEBUG CSRF_COOKIE_HTTPONLY = True SESSION_COOKIE_HTTPONLY = True