#9490: Empty session is stored if clean session is accessed
-------------------------------------+--------------------------------------
 Reporter:  hauser                   |       Owner:  nobody    
   Status:  new                      |   Milestone:            
Component:  django.contrib.sessions  |     Version:  1.0       
 Keywords:  unused session modified  |       Stage:  Unreviewed
Has_patch:  0                        |  
-------------------------------------+--------------------------------------
 If user opens a page for first time (without a session), and code accesses
 request.session, then a new session is created and this session has
 'modified' flag set to True. So when no data is saved, an empty session is
 stored in the database and cookie is sent back to the user.

 For example if in your code you will call only
 request.user.is_authenticated(), it triggers user check in the session,
 the session is created and a new empty session is created in the database.

 It is not a bug, but creates unused session objects.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9490>
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