Skip to main content

SSO Logout does not work correctly

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2010-03-16


I have a problem with the logout behavior of Single Sign On(SSO).

I am developing a web application of two on GlassFish 4.0.

[a-app] accepts the login.
[b-app] will accept the request after login.

[a-app] returns the [b-app] access URL after the login.
[a-app] access URL returned from [b-app] when accessed in the state that are not login.
[b-app] have a logout button.

The problem is operation when press the logout button of [b-app].
It does not return to the login screen If do not press twice the logout button.

Logout method is running both times indeed.
public String logout() {
FacesContext ctx = FacesContext.getCurrentInstance();
ExternalContext ectx = ctx.getExternalContext();
HttpSession session = (HttpSession)ectx.getSession(false);

Are there any other How to logout to ensure in environment of SSO?