Ticket #15246: session_accessed_upd.diff

File session_accessed_upd.diff, 628 bytes (added by Alex Alexapolsky, 13 years ago)
  • django/contrib/sessions/middleware.py

     
    2424        else:
    2525            if accessed:
    2626                patch_vary_headers(response, ('Cookie',))
    27             if modified or settings.SESSION_SAVE_EVERY_REQUEST:
     27            if accessed or modified or settings.SESSION_SAVE_EVERY_REQUEST:
    2828                if request.session.get_expire_at_browser_close():
    2929                    max_age = None
    3030                    expires = None
Back to Top