id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 22004,Allow session.modified with an explicit False value to override SESSION_SAVE_EVERY_REQUEST,Byron Ruth,,"This line checks precludes a view that attempts to explicitly set the `session.modified` attribute to False. The use case I have is have a view that serves as a ""ping"" endpoint for session timeouts. The problem is that if the project setting has the SESSION_SAVE_EVERY_REQUEST set to true, that view continually reset the session expiry time. The changes required are to set [https://github.com/django/django/blob/master/django/contrib/sessions/backends/base.py#L42 this line] to None and [https://github.com/django/django/blob/master/django/contrib/sessions/middleware.py#L31 this line] to `if modified or (modified is None and settings.SESSION_SAVE_EVERY_REQUEST):`",Uncategorized,closed,contrib.sessions,dev,Normal,wontfix,,johngiannelos@…,Unreviewed,0,0,0,0,1,0