From 074716e0052d3c928ce5b34f5ae8cfc9d05ec806 Mon Sep 17 00:00:00 2001 From: Maciej Tronowski Date: Thu, 7 May 2015 16:57:59 +0200 Subject: [PATCH] limit length of session to not exceed length of user proxy --- plgng/settings_common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plgng/settings_common.py b/plgng/settings_common.py index a6c93aa..dcbc776 100644 --- a/plgng/settings_common.py +++ b/plgng/settings_common.py @@ -107,6 +107,7 @@ OPENID_STRICT_USERNAMES = True SESSION_COOKIE_NAME = 'qcg_session' +SESSION_COOKIE_AGE = 60 * 60 * 24 * 6 # 6 days, length of user proxy from openid is 1 week SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer' -- 1.7.9.5