From 59c6f35b0b38b95900832fb6a81485b430364eb5 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Mon, 15 Nov 2021 12:58:14 -0500 Subject: [PATCH] Set SESSION_COOKIE_NAME by default Make sure to use a different session cookie name then the default, to avoid overlapping cookies with other django apps that might be running. Signed-off-by: Paul Belanger --- awx/settings/defaults.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awx/settings/defaults.py b/awx/settings/defaults.py index 0b5bd0b4b6..fe5aed19dc 100644 --- a/awx/settings/defaults.py +++ b/awx/settings/defaults.py @@ -242,6 +242,9 @@ SUBSYSTEM_METRICS_INTERVAL_SAVE_TO_REDIS = 2 # The maximum allowed jobs to start on a given task manager cycle START_TASK_LIMIT = 100 +# Name of our session cookie +SESSION_COOKIE_NAME = 'awxsessionid' + # Disallow sending session cookies over insecure connections SESSION_COOKIE_SECURE = True