limit length of session to not exceed length of user proxy
authorMaciej Tronowski <mtro@man.poznan.pl>
Thu, 7 May 2015 14:57:59 +0000 (16:57 +0200)
committerMaciej Tronowski <mtro@man.poznan.pl>
Thu, 7 May 2015 14:57:59 +0000 (16:57 +0200)
plgng/settings_common.py

index a6c93aa..dcbc776 100644 (file)
@@ -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'