projects
/
qcg-portal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7166c1
)
limit length of session to not exceed length of user proxy
author
Maciej Tronowski
<mtro@man.poznan.pl>
Thu, 7 May 2015 14:57:59 +0000
(16:57 +0200)
committer
Maciej Tronowski
<mtro@man.poznan.pl>
Thu, 7 May 2015 14:57:59 +0000
(16:57 +0200)
plgng/settings_common.py
patch
|
blob
|
history
diff --git
a/plgng/settings_common.py
b/plgng/settings_common.py
index
a6c93aa
..
dcbc776
100644
(file)
--- 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'