Skip to main content

SSO Logout does not work correctly

No replies
sf019jp
Offline
Joined: 2010-03-16
Points: 0

Hello!

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);
session.invalidate();
return("redirect-logout.xhtml");
}
-----

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