[英]How do I logout from Java EE container managed security?
我在websphere 7.0中工作。 我使用应用程序服务器的安全性。 我想删除与用户的关联,因此在访问安全资源之前用户被重定向到登录页面(并且request.getUserPrincipal()返回null)。
我尝试:
request.getSession()无效();
但用户主体仍然关联。
我怎么能删除那个关联?
在websphere上,必须使用特殊注销表单calles:
我在这里使用的是:
<body onload="javascript:document.logout.submit()">
<h2>Sample Form Logout</h2>
<form METHOD=POST ACTION="ibm_security_logout" NAME="logout">
Click this button to log out:
<input type="submit" name="logout" value="Logout">
<INPUT TYPE="HIDDEN" name="logoutExitPage" VALUE="/some url">
</form>
</body>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.