On Dec 28, 2:22 am, Pablo Martin Gore <[email protected]> wrote:
> Hi
>  I have a situation , the cookie is created when the user is login into the
> application and we want to remove the cookie when the user press the logout
> button or close the browser.
>
> I register the close event like this :
>
>         Window.addCloseHandler(new CloseHandler<Window>() {
>             @Override
>             public void onClose(CloseEvent<Window> arg0) {
>                 //clear history token before close the browser
>                 History.newItem("");
>             }
>         });
>
> But here , the problem is when we press the reload button or F5 , gwt enter
> in the event close.
> That behaviour is ok ??

That's the intended behaviour yes. Your use case can be simply solved
by using so-called "session cookies", i.e. cookies without explicit
expiration (and of course explicitly removing the cookie when the user
explicitly logs out).

--

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.


  • close event Pablo Martin Gore
    • Re: close event Thomas Broyer

Reply via email to