#9096: Comment in session middleware doesn't match behaviour
-------------------------------------+--------------------------------------
 Reporter:  SamBull                  |       Owner:  nobody    
   Status:  new                      |   Milestone:            
Component:  django.contrib.sessions  |     Version:  1.0       
 Keywords:                           |       Stage:  Unreviewed
Has_patch:  0                        |  
-------------------------------------+--------------------------------------
 The comment at the beginning of !SessionMiddleware's process_response
 method says, "If request.session was modified, or if response.session was
 set, save those changes and set a session cookie."

 It says that the sessions changes will be saved and a session cookie will
 be set if response.session was set, but in the code only request.session
 is ever checked.

 I don't know why the session object would be on the response and not on
 the request. I'm assuming the comment is simply out of date, but I defer
 to wiser minds.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9096>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to