From 2af9ab90097ae0a18a2572ec9c9e1dc97b63d3d2 Mon Sep 17 00:00:00 2001 From: Robert Raposa Date: Thu, 16 Jan 2025 16:00:03 -0500 Subject: [PATCH] docs: explain default session expiration --- .../core/djangoapps/session_inactivity_timeout/middleware.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openedx/core/djangoapps/session_inactivity_timeout/middleware.py b/openedx/core/djangoapps/session_inactivity_timeout/middleware.py index eb5633ff1292..79609e4766e5 100644 --- a/openedx/core/djangoapps/session_inactivity_timeout/middleware.py +++ b/openedx/core/djangoapps/session_inactivity_timeout/middleware.py @@ -7,6 +7,9 @@ SESSION_INACTIVITY_TIMEOUT_IN_SECS = 300 This was taken from StackOverflow (http://stackoverflow.com/questions/14830669/how-to-expire-django-session-in-5minutes) + +If left unset, session expiration will be handled by Django's SESSION_COOKIE_AGE, +which defauts to 1209600 (2 weeks, in seconds). """