From: Maciej Tronowski Date: Thu, 7 May 2015 14:57:59 +0000 (+0200) Subject: limit length of session to not exceed length of user proxy X-Git-Tag: v1.0~8 X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=commitdiff_plain;h=074716e0052d3c928ce5b34f5ae8cfc9d05ec806;p=qcg-portal.git limit length of session to not exceed length of user proxy --- 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'