2008-01-16
Bug : LogoutFilter return a 404 on Websphere 6.0.2
关键字: application servers, security
Environment: Windows Xp + Websphere 6.0.2.0 + IBM JDK/JRE 1.4.2
Description: When I click logout.jsp, it returns a 404.
However, acegi sample app logouot work on websphere 6.0.2
Matt suggest the following temp solution:
Remove logoutFilter from security.xml (as a bean definition and in the filterChain) and
replace it with a web/logout.jsp page that has the following:
Description: When I click logout.jsp, it returns a 404.
However, acegi sample app logouot work on websphere 6.0.2
Matt suggest the following temp solution:
Remove logoutFilter from security.xml (as a bean definition and in the filterChain) and
replace it with a web/logout.jsp page that has the following:
<%@ include file="/common/taglibs.jsp"%> <%@ page import="javax.servlet.http.Cookie" %> <%@ page import="org.acegisecurity.ui.rememberme.TokenBasedRememberMeServices" %> <% session.invalidate(); Cookie terminate = new Cookie(TokenBasedRememberMeServices.ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE_KEY, null); terminate.setMaxAge(0); response.addCookie(terminate); %> <c:redirect url="/mainMenu.html"/>
发表评论
- 浏览: 14023 次
- 性别:

- 来自: 武汉

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
JFreechart研究学习
不错
-- by lucky520 -
在Spring中使用 Java Time ...
<!-- delay 属性指定其间隔时间 --> <p ...
-- by gyhgc -
利用Java实现串口全双工通 ...
引用xieke 前天 8年前的老文章还拿出来??? 不好意思哥们,最近要搞这个 ...
-- by ispring -
利用Java实现串口全双工通 ...
8年前的老文章还拿出来???
-- by xieke -
Pathway from ACEGI to Sp ...
对啊 有没有正确版本啊
-- by jianfeng008cn






评论排行榜