Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #9096 -- Fixed a slightly out-of-date comment.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9062 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a10fcbdb8b36e12fb839c7e760f047568877e9da 1 parent 11e29c8
@malcolmt malcolmt authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 django/contrib/sessions/middleware.py
View
6 django/contrib/sessions/middleware.py
@@ -11,8 +11,10 @@ def process_request(self, request):
request.session = engine.SessionStore(session_key)
def process_response(self, request, response):
- # If request.session was modified, or if response.session was set, save
- # those changes and set a session cookie.
+ """
+ If request.session was modified, or if the configuration is to save the
+ session every time, save the changes and set a session cookie.
+ """
try:
accessed = request.session.accessed
modified = request.session.modified
Please sign in to comment.
Something went wrong with that request. Please try again.