Ticket #8061: session-middleware.diff
File session-middleware.diff, 691 bytes (added by , 16 years ago) |
---|
-
django/contrib/sessions/middleware.py
11 11 request.session = engine.SessionStore(session_key) 12 12 13 13 def process_response(self, request, response): 14 # If the session cookie was not present, add the test cookie 15 if settings.SESSION_COOKIE_NAME not in request.COOKIES: 16 request.session.set_test_cookie() 17 14 18 # If request.session was modified, or if response.session was set, save 15 19 # those changes and set a session cookie. 16 20 try: