#7776: Test cookie isn't deleted if persistent data in Newforms-Admin login
----------------------------------------+-----------------------------------
Reporter: Mnewman | Owner: brosner
Status: assigned | Milestone:
Component: Admin interface | Version: SVN
Resolution: | Keywords: Admin auth cookies
Stage: Ready for checkin | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
----------------------------------------+-----------------------------------
Comment (by rajeshdhawan):
`session.test_cookie_delete`() will raise an Exception if `testcookie`
does not exist in the session. So, we should test that the cookie worked
before calling `test_cookie_delete`:
{{{
if request.session.test_cookie_worked():
request.session.delete_test_cookie()
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/7776#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
-~----------~----~----~----~------~----~------~--~---