1

I develop an GWT applicationwith HTTP basic login type.

I have a "Logout" button that calls a server side method logout()

public void logout() {
  getThreadLocalRequest().getSession().invalidate();

}

after the call it executes

 Cookies.removeCookie("JSESSIONID");
 Window.Location.reload();

in order to reload the page and get a browser's login screen.

But when the page reloads, I'm still logged in. Why ?

Łukasz Bownik
  • 6,149
  • 12
  • 42
  • 60
  • 1
    How are you checking whether user is logged in or not? Please paste the code where you do that check. – DonX Oct 20 '10 at 10:48

1 Answers1

1

Well, Logout is a common problem for basic HTTP authentication.

Ref. Logout with http basic authentication and restful_authentication plugin

if the user logs in with basic auth, he/she will have to close his/her browser window to logout.

Community
  • 1
  • 1
maxim_ge
  • 1,153
  • 1
  • 10
  • 18