Skip to content

Commit 094d37c

Browse files
committed
Permit really long sessions, and don't expire sessions on browser close. On request from Pete Resnick.
- Legacy-Id: 8141
1 parent 682681e commit 094d37c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ietf/settings.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,10 @@ def skip_suspicious_operations(record):
126126
# End logging
127127
# ------------------------------------------------------------------------
128128

129-
SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 # Age of cookie, in seconds: 2 weeks.
130-
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
129+
#SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 # Age of cookie, in seconds: 2 weeks.
130+
SESSION_COOKIE_AGE = 60 * 60 * 24 * 365 * 50 # Age of cookie, in seconds: 50 years
131+
132+
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
131133
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
132134

133135
TEMPLATE_LOADERS = (

0 commit comments

Comments
 (0)