tags:

views:

55

answers:

2

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 ?

+1  A: 

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

Ref. http://stackoverflow.com/questions/660155/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.

maxim_ge
A: 

You can read an answer here

maxim_ge
seems like a working solution - I'll try :)
lbownik