#5667: Session backend does not work for db backend
-------------------------------------+--------------------------------------
   Reporter:  [EMAIL PROTECTED]         |                Owner:  nobody       
     Status:  closed                 |            Component:  Uncategorized
    Version:  SVN                    |           Resolution:  wontfix      
   Keywords:  session cache backend  |                Stage:  Unreviewed   
  Has_patch:  0                      |           Needs_docs:  0            
Needs_tests:  0                      |   Needs_better_patch:  0            
-------------------------------------+--------------------------------------
Comment (by anderso):

 I had the same problem, I was storing the POST dictionary (a QueryDict) in
 the session:

 {{{
 request.session["posted"] = request.POST
 }}}

 This seems to have the effect of silently invalidating the session, since
 when I access the session in a later request I get a clean session object.
 I don't have time to investigate this further right now, I've just fixed
 it this way for now:

 {{{
 request.session["posted"] = dict(request.POST.items())
 }}}

 This creates an ordinary dict and stores that instead. I'm pretty sure the
 original code worked fine earlier, which is why it took me a good deal of
 time before I found this error.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5667#comment:3>
Django Code <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