#5562: delete_cookie function in HttpResponse object doesn't work.
--------------------------------------------+-------------------------------
Reporter: ljpsfree <[EMAIL PROTECTED]> | Owner: nobody
Status: new | Component: HTTP handling
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 1
--------------------------------------------+-------------------------------
* In this function,
{{{
self.cookies[key]['expires'] = 0
}}}
* Here the expire time set to a number, but it should set to a time
string. The browser can't set the expire time for this cookie, so it will
not be removed.I just set the expires time to a GMT beginning time string,
and it works correct.
{{{
self.cookies[key]['expires'] = "Thu 1-Jan-1970 00:00:00 GMT"
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/5562>
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
-~----------~----~----~----~------~----~------~--~---