Wednesday, 7 August 2013

ibm_security_logout in Websphere 8.5.0.2 fails to redirect and returns a text MIME type

ibm_security_logout in Websphere 8.5.0.2 fails to redirect and returns a
text MIME type

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. What I noticed is
when I logout that it does not redirect to the page I 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:
<!DOCTYPE HTML PUBLIC "-//W3C/DTD HTML 4.0
Transitional//EN"><HTML><TITLE>Default Logout Exit
Page</TITLE><BODY><H2>Successful Logout</H2></BODY></HTML>
I tried several flavors of ibm_security_logout in my page, none works as
expected:
<a
href="/adminagent/ibm_security_logout?logoutExitPage=http://www.gov.on.ca"
class="headerLink">Logout</a>
<form method="post" ACTION="ibm_security_logout" NAME="logoutForm">
<INPUT TYPE="HIDDEN" name="logoutExitPage" VALUE="http://www.gov.on.ca">
<input type="submit">
</form>
<a href="#" onclick="logoutForm.submit();"> submit </a>
Please help...

No comments:

Post a Comment