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/'
and
Cookie.remove('test'); // deletes the cookie
but on same page:
Cookie.set('test','somevalue',{path:'/'}); // sets cookie with path
'/'
and
Cookie.remove('test'); // the cookie not deleted, just
duplicated
Comments and changes to this ticket
-
MadRabbit October 15th, 2011 @ 12:11 PM
- State changed from new to resolved
I've added the Cooke.remove options parameter https://github.com/rightjs/rightjs-core/commit/86b3ef7e0cd9e599f639...
it should work kinda like that
Cookie.remove('test', {path: '/'});
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
RightJS Core Tickets