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:
parent
682681e1cf
commit
094d37c44c
|
@ -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 = (
|
||||
|
|
Loading…
Reference in a new issue