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);
>
Good luck,
Sammi
On Mon, Nov 17, 2008 at 9:50 AM, Eros <[EMAIL PROTECTED]> wrote:
>
> 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
> - removing www
> - removing everything under tomcat/work/gwt/localhost/_/
>
> If I do a "Compile/Browse" everything works as expected, cookies get
> removed with Cookies.remove or clearing the cache in Firefox.
>
> I use Ubuntu 8.10 and GWT 1.5.3
>
> Any help is appreciated.
>
> Cheers,
> Eros
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---