I am using:

Window.addWindowClosingHandler(new ClosingHandler() {
       public void onWindowClosing(ClosingEvent event) {
               somethingService.logout(new AsyncCallback<Void>() {
                       public void onFailure(Throwable caught) {

                       }
                       public void onSuccess(Void result) {

                       }
               });
       }
});

to log out the system if the user closes the browser or switch to
another page without having to log out, but this also happens when the
user uses the refresh, I wonder if it is to see if the user used
refresh, or if have any another solution to the problem.

-- 
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.

Reply via email to