#472 ✓resolved

Cookie.remove problem

Reported by ruslan | June 8th, 2011 @ 03:35 PM

Cookie.remove() not works correctly because it not takes a 'path' option into account.
Actually Cookie.remove(name) calls Cookie.set(name,'') with default options.

For example:

on page www.myserver.com/pages/testpage.html
Cookie.set('test','somevalue'); // sets cookie with path '/pages/'
Cookie.remove('test'); // deletes the cookie

but on same page:
Cookie.set('test','somevalue',{path:'/'}); // sets cookie with path '/'
Cookie.remove('test'); // the cookie not deleted, just duplicated

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RightJS Core Tickets

Shared Ticket Bins

People watching this ticket