Hi,
I have a close handler registered on Window. When a user leaves my
page the onClose() method is called. In the onClose() method I call a
server side method logout() which takes care of cleaning the server
session. See the simple code below. A pretty basic thing one would
say.

    /**
     * User has left the page. The logout
     * operation has to be performed.
     */
    public void onClose(CloseEvent<Window> event) {
        logout();
    }

    private void logout() {
        AsyncCallback<Object> remoteLogout = new
AsyncCallback<Object>() {
            @Override
            public void onSuccess(Object object) {
            }

            @Override
            public void onFailure(Throwable caught) {
                Window.alert(caught.toString() + "\n\n" +
((StatusCodeException)caught).getStatusCode());
            }
        };
        AppAuthServiceAsync.Impl.getInstance().logout(remoteLogout);
    }

In all browsers this works fine, except Chrome. In Chrome the method
logout() on the server side is called, that's fine, but I always get
StatusCodeException as a result of the operation. The status code
returned in the exception is 0. No idea why this happens, I expect
some quirk related to browser specific behavior. Can anyone explain
why this happens and how to avoid it? Am I doing something wrong?

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