[buddypress-trac] [BuddyPress Trac] #5909: Logging out does not clear cookies

buddypress-trac noreply at wordpress.org
Sat Sep 27 19:08:34 UTC 2014

#5909: Logging out does not clear cookies
 Reporter:  r-a-y          |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  2.1.1
Component:  Template Pack  |    Version:  2.1
 Severity:  normal         |   Keywords:  has-patch
 Originally reported by Ypswytch:

 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 uses a new 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.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5909>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list