From 5bb33b681ec36e054dd91ba0e0170d1c3a0da467 Mon Sep 17 00:00:00 2001 From: Daniel Muckerman Date: Sat, 12 Dec 2020 02:39:47 -0500 Subject: [PATCH] Make session shared across domains too --- accounts/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/accounts/__init__.py b/accounts/__init__.py index 9016eee..9804e55 100644 --- a/accounts/__init__.py +++ b/accounts/__init__.py @@ -30,6 +30,7 @@ app.config['LDAP_OPENLDAP'] = True app.config['LDAP_USER_OBJECT_FILTER'] = '(&(objectclass=posixAccount)(uid=%s))' # Login cookies +app.config['SESSION_COOKIE_DOMAIN'] = os.environ.get('COOKIE_DOMAIN') app.config['REMEMBER_COOKIE_DOMAIN'] = os.environ.get('COOKIE_DOMAIN') db = SQLAlchemy(app)