Hi Bruno! the problem is that RPC methods are async, so you fire the RPC request, and the page is unloaded before the request finishes, leaving your app in a unknown state. my solution is to teach gwt to handle sync rpc requests. see http://code.google.com/p/google-web-toolkit/issues/detail?id=4898
HTH Michael On May 3, 4:25 pm, Bruno Santos <bruegosan...@gmail.com> wrote: > 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 google-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.