Hi,
I can't get rid of cookies in hosted mode. I wrote a "userId" cookie
using:
Cookies.setCookie("userId", userId);
and now I can't remove it.
I tried the following:
- Cookies.removeCookie("userId");
- restarting the hosted mode
- Eclipse -> Project -> Clean...
- restarting Eclipse
- removin
I finally managed to get rid of the cookie: I had set it to expire in
14 days, so I set the system time 30 days in the future and it finally
worked.
Still there's gotta be a way of getting rid of unwanted cookies in
hosted mode, is this a bug? (or maybe a feature ;-))
--~--~-~--~~
Cookies.removeCookie("userId") doesn't work here too. I use expire time to
remove it, it works.
> int COOKIE_TIMEOUT = 0;
>
Date removeExpire = new Date((new Date()).getTime() + COOKIE_TIMEOUT);
>// //remove the cookie, works.
Cookies.setCookie("cookieName",null, removeExpire);
>
Goo
On Nov 17, 7:21 pm, "yunhui song" <[EMAIL PROTECTED]> wrote:
> Cookies.removeCookie("userId") doesn't work here too. I use expire time to
> remove it, it works.
Great, thanks for the tip!
E
--~--~-~--~~~---~--~~
You received this message because you are subscribe