Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ibm_security_logout fails to redirect and returns a text MIME type

 
A Castaban
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I have an application I am migrating from Websphere 6.1 to 8.5. It uses form based login and logs out with ibm_security_logout.

I have noticed when I log out, it does not redirect to the page I have specified at logoutExitPage parameter. Not only that, it returns a text/plain MIME as page type and I get something like this on the browser:



I tried several flavors of ibm_security_logout in my page, none works as expected:



How can I fix this?
 
Tomasz Bondaruk
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know it is an old question but somebody may need it for future reference:

According to the documentation: http://www-01.ibm.com/support/knowledgecenter/SSEQTJ_8.5.5/com.ibm.websphere.nd.doc/ae/tsec_pofolo.html

You just need to add following line to your code:
<input type="hidden" name="logoutExitPage" value="/yourPage.xhtml" />

I did it in my project and it works fine!
 
Claude Moore
Ranch Hand
Posts: 783
7
IBM DB2 Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for sharing it and welcome to CodeRanch!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic