#5909 closed defect (bug) (fixed)
Logging out does not clear cookies
Reported by: | r-a-y | Owned by: | r-a-y |
---|---|---|---|
Milestone: | 2.1.1 | Priority: | normal |
Severity: | normal | Version: | 2.1 |
Component: | Appearance - Template Pack | Keywords: | has-patch commit |
Cc: |
Description (last modified by )
Originally reported by Ypswytch:
https://buddypress.trac.wordpress.org/ticket/5889#comment:13
When a user logs out, buddypress.js attempts to clear all cookies. However, this now fails with BP 2.1.
The problem is when we enqueued our JS assets, we upgraded jquery.cookie to 1.4.1.
v1.4.1 has a new routine to remove cookies:
$.removeCookie('name', { path: '/' });
We are currently doing this:
$.cookie('name', null, { path: '/' });
Which doesn't clear the cookie anymore. Attached patch switches all our clear cookie calls to this updated routine.
Attachments (1)
Change History (7)
Note: See
TracTickets for help on using
tickets.
Good find, r-a-y.