> Due to the way cookies work, path and domain should be the same values
you used in set_cookie() – otherwise the cookie may not be deleted.
Link to bug in code:
https://github.com/django/django/blob/9baf692/django/contrib/sessions/middleware.py#L38
--
Ticket URL: <https://code.djangoproject.com/ticket/26783>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* has_patch: 0 => 1
* needs_tests: => 0
* needs_docs: => 0
Comment:
https://github.com/django/django/pull/6811
--
Ticket URL: <https://code.djangoproject.com/ticket/26783#comment:1>
* stage: Unreviewed => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/26783#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"d13881bd34ff8f76b902ef5256001341d60b3161" d13881bd]:
{{{
#!CommitTicketReference repository=""
revision="d13881bd34ff8f76b902ef5256001341d60b3161"
Fixed #26783 -- Fixed SessionMiddleware's empty cookie deletion when using
SESSION_COOKIE_PATH.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26783#comment:3>
Comment (by Tim Graham <timograham@…>):
In [changeset:"e725a68bcce4106fa3e1e8ecb0145ddef03d9005" e725a68b]:
{{{
#!CommitTicketReference repository=""
revision="e725a68bcce4106fa3e1e8ecb0145ddef03d9005"
[1.10.x] Fixed #26783 -- Fixed SessionMiddleware's empty cookie deletion
when using SESSION_COOKIE_PATH.
Backport of d13881bd34ff8f76b902ef5256001341d60b3161 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26783#comment:4>