Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Cookie.remove problem

#472

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

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

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. MadRabbit
    MadRabbit
    • 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: '/'});
    

    October 15th, 2011 @ 12:11 PM

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.