Permit really long sessions, and don't expire sessions on browser close. On request from Pete Resnick.

- Legacy-Id: 8141
This commit is contained in:
Henrik Levkowetz 2014-07-19 21:12:17 +00:00
parent 682681e1cf
commit 094d37c44c

View file

@ -126,8 +126,10 @@ LOGGING['handlers']['mail_admins']['filters'] += [ 'skip_suspicious_operations'
# End logging
# ------------------------------------------------------------------------
SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 # Age of cookie, in seconds: 2 weeks.
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
#SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 # Age of cookie, in seconds: 2 weeks.
SESSION_COOKIE_AGE = 60 * 60 * 24 * 365 * 50 # Age of cookie, in seconds: 50 years
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
TEMPLATE_LOADERS = (