placing request.POST.copy() in session wipes all session values
|Reported by:||mikechambers||Owned by:||nobody|
|Cc:||rajesh.dhawan@…, dsalvetti@…, philipp@…||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||yes|
Description (last modified by ramiro)
Version : (0, 97, 'pre')
The issue is that it appears trying to store a QueryDict (request.POST, or a copy of a QueryDict) in the session, will wipe all session data.
You can see the original thread here:
request.session['form_post_data'] = request.POST.copy() request.session['foo'] = "bar"
Then, in another request:
(i.e. no keys)
request.session['foo'] = "bar"
then in another request:
print request.session.keys() prints ['foo']
There seems to be two potential issues:
- Cannot store request.POST.copy() or request.POST in the session (should you be able to do this?)
- Trying to place request.POST.copy() in the session wipes all session values.
More info on the following threads:
Change History (20)
Changed 8 years ago by mikechambers
Changed 8 years ago by rajesh.dhawan@…
comment:1 follow-up: ↓ 4 Changed 8 years ago by rajeshdhawan
- Cc rajesh.dhawan@… added
- Has patch set
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
Changed 8 years ago by rajeshdhawan
comment:15 Changed 8 years ago by mtredinnick
- Resolution set to fixed
- Status changed from new to closed