Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8764967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:10:00+00:00 2026-06-13T16:10:00+00:00

I try to implement the /ibm_security_logout logic in a JSF project. There are some

  • 0

I try to implement the /ibm_security_logout logic in a JSF project.
There are some requirements about the way which I should use for logging out.

It should conform this form:

<FORM METHOD=POST ACTION="<%=request.getContextPath()%>/ibm_security_logout"
NAME="LogoutForm">
<INPUT TYPE="HIDDEN" NAME="logoutExitPage"
VALUE="/../weblogin/logout?dest=/myapp/goodbye.jsp">
<INPUT TYPE="submit" NAME="logout" VALUE="Logout">
</FORM>

Both cases must be there.

<%=request.getContextPath()%>/ibm_security_logout"
VALUE="/../weblogin/logout?dest=/myapp/goodbye.jsp">

How can I realise it with commanlink?

<h:commandLink value="Log Out" action="#{sessionController.logout}" />

How should it look like in the bean method??

public void logout() throws IOException {

    ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
    ec.invalidateSession();
    ec.redirect("/../weblogin/logout?dest=/myapp/goodbye.jsp");

}

EDIT

#{request.contextPath} = localhost:9080/MyProject
Login Page = localhost:9080/weblogin/login?webapp=/MyProject (Login Page is managed via) an extern Framework
Logout is also managed via an extern framework. Therefore the URL must conform this VALUE=”/../weblogin/logout?dest=/weblogin/login?webapp=/MyProject.

I tried it with the code below. But it did not work.

<form id="logout" action="#{request.contextPath}/ibm_security_logout"
            method="post">
<input type="hidden" name="logoutExitPage"
            value="/../weblogin/logout?dest=/weblogin/login?webapp=/MyProject">
<a  href="#" onclick="document.getElementById('logout').submit()">Logout_NEU</a>
</form>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:10:02+00:00Added an answer on June 13, 2026 at 4:10 pm

    Using ExternalContext#invalidateSession() alone is not sufficient. You absolutely need to POST to /ibm_security_logout directly if you have used IBM’s login facilities. It will not only invalidate the session, but also clear out the SSO cookie and LPTA authentication. Otherwise the user would possibly still be auto-logged-in after invalidate.

    You can just use plain HTML in JSF. I’d only neutralize those 90’s style uppercased tags/attributes, because uppercased/camelcase HTML tags/attributes are invalid in XHTML (I assume that you’re using Facelets; your question history at least confirms that you’re using Facelets).

    <form action="#{request.contextPath}/ibm_security_logout" method="post">
        <input type="hidden" name="logoutExitPage" value="#{request.contextPath}/home.xhtml">
        <input type="submit" name="logout" value="Logout" />
    </form>
    

    Or if you really need a link to submit the form,

    <form id="logout" action="#{request.contextPath}/ibm_security_logout" method="post">
        <input type="hidden" name="logoutExitPage" value="#{request.contextPath}/home.xhtml">
        <a href="#" onclick="document.getElementById('logout').submit()">Logout</a>
    </form>
    

    Note that the logoutExitPage must represent the URL of the landing page after logout. It doesn’t necessarily need to represent exactly /../weblogin/logout?dest=/myapp/goodbye.jsp. That was just an example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

we actually try to implement a secure way to get some local files over
I try to implement a query by using Between Clause,but there is some problem
I try to implement a servlet which should be called either through POST or
I try to implement a Google +1 button in my website, but for some
The way I try implement it via standart Windows.Forms (to get valide DialogResult.OK) System.Windows.Forms.SaveFileDialog
I try to implement an option which will save the console output additionally into
I try to implement a non-recursive make build system in my current project. What
I try to implement jQuery calender at my homepage: This is the way I
I try to implement GCM in my project and have problems with onMessage function.
I try to implement new validationrules in my MVC-Project but i wont become a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.