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
This commit is contained in:
Malcolm Tredinnick 2008-09-17 08:10:55 +00:00
parent 11e29c887a
commit a10fcbdb8b
1 changed files with 4 additions and 2 deletions

View File

@ -11,8 +11,10 @@ class SessionMiddleware(object):
request.session = engine.SessionStore(session_key) request.session = engine.SessionStore(session_key)
def process_response(self, request, response): 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: try:
accessed = request.session.accessed accessed = request.session.accessed
modified = request.session.modified modified = request.session.modified