PDA

View Full Version : Refreshing the page (by pressing F5) calls the browser window close



ramaraju256
3 Jul 2013, 6:04 PM
Hi All

currently am using the gxt-2.2.4-gwt22.jar

am clear the cookies in window close handler using this code snippet

Window.addWindowClosingHandler(new Window.ClosingHandler() {
@Override
public void onWindowClosing(ClosingEvent closingEvent) {
Cookies.removeCookie("user");

}
});
but what happens is when ever refreshing the pager (by pressing F5) this close handler method is calling

Is there any way to handle this situation ,please help me out of this

Thanks.