会话无效不适用于基于LTPA的安全性

编程入门 行业动态 更新时间:2024-10-12 05:54:05
本文介绍了会话无效不适用于基于LTPA的安全性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我通常使用JSP处理站点注销,该JSP执行<%= session.invalidate()%>,然后重定向到主页.现在,我正在使用LTPA和SSL证书在WebSphere上运行身份验证. Session.invalidate()不起作用.有人建议这是因为WAS正在使用LTPA. LTPA创建一个不会被session.invalidate清除的身份验证cookie(LtpaToken2).

I normally handle site logout with a JSP that executes <%= session.invalidate() %> then redirects to the home page. Now I am running on WebSphere authenticating using LTPA and a SSL Certificate. Session.invalidate() does not work. Someone suggested it is because WAS is using LTPA. LTPA creates an authentication cookie (LtpaToken2) that is not cleared by session.invalidate.

IBM确实可以使用专有的注销JSP ***,但是我不想使用特定于供应商的解决方案.是否有人解决了注销LTPA cookie而不绑定到供应商的J2EE容器的会话注销?

IBM does have a proprietary logout JSP*** I could use, but I don't want to use a vendor specific solution. Has anybody tackled a session logout that clears the LTPA cookie without being tied to a vendor's J2EE container?

推荐答案

我找到了解决方法:

  • 在管理控制台中,单击Security> Global security
  • 在Custom properties下,单击New
  • 在名称"字段中,输入com.ibm.ws.security.web.logoutOnHTTPSessionExpire
  • 在值"字段中,输入true
  • 单击Apply和Save将更改保存到您的配置中
  • 重新同步并重新启动服务器
  • In the administrative console, click Security > Global security
  • Under Custom properties, click New
  • In the Name field, enter com.ibm.ws.security.web.logoutOnHTTPSessionExpire
  • In the Values field, enter true
  • Click Apply and Save to save the changes to your configuration
  • Resynchronize and restart the server

更多推荐

会话无效不适用于基于LTPA的安全性

本文发布于:2023-10-19 18:45:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1508428.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:安全性   不适用于   LTPA

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!