From 4bade8d2868b004730daf275a6010b8d2ae140ae Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Wed, 5 Jun 2013 10:30:28 -0400 Subject: [PATCH] allow configuration settings to specify a session cookie name. This is to avoid problems we are experiencing between simultaneous login sessions between edx.org and edge.edx.org on certain browsers (i.e. Firefox) --- cms/envs/aws.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cms/envs/aws.py b/cms/envs/aws.py index f6064229e6..be30ce28b2 100644 --- a/cms/envs/aws.py +++ b/cms/envs/aws.py @@ -91,6 +91,12 @@ CACHES = ENV_TOKENS['CACHES'] SESSION_COOKIE_DOMAIN = ENV_TOKENS.get('SESSION_COOKIE_DOMAIN') +# allow for environments to specify what cookie name our login subsystem should use +# this is to fix a bug regarding simultaneous loging between edx.org and edge.edx.org which can +# happen with some browsers (e.g. Firefox) +if ENV_TOKENS.get('SESSION_COOKIE_NAME', None): + SESSION_COOKIE_NAME = ENV_TOKENS.get('SESSION_COOKIE_NAME') + #Email overrides DEFAULT_FROM_EMAIL = ENV_TOKENS.get('DEFAULT_FROM_EMAIL', DEFAULT_FROM_EMAIL) DEFAULT_FEEDBACK_EMAIL = ENV_TOKENS.get('DEFAULT_FEEDBACK_EMAIL', DEFAULT_FEEDBACK_EMAIL)