Hello. I have also used the described method of logout.jsp in my appfuse 1.9.4 application. The problem I faced was when the user actually logged in using "rememberMe" and then tried to logout. The app would just keep redirecting to the mainMenu. This was happening because the the rememberMe cookie wasn't being deleted... After an hour of hair pulling, I tried to edit logout.jsp, and set the new terminater cookie max age to "1" instead of "0".....and it worked.....maybe this is a special case...but I can't really explain it... If you can, let me know.
So in conclusion: terminate.setMaxAge(0); -> terminate.setMaxAge(1); then the cookie gets deleted (wierd :S) -Zak Jonathan Tse wrote: > > Matt, > > If I place your logout.jsp there, it works. Thanks. If you need to > further test logoutFilter on websphere, just let me know. > > Best regards, > Jonathan > > Matt Raible wrote: >> So logout results in a 404? What happens if you 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"/> >> >> Matt >> >> On 1/5/07, Jonathan Tse <[EMAIL PROTECTED]> wrote: >>> Matt, >>> >>> I mean, I deploy the sample app comes with acegi tarball and both >>> login and logout work fine. However, it seems that logout doesn't in >>> appfuse. >>> >>> Best regards, >>> Jonathan >>> >>> Matt Raible wrote: >>> > If both login and logout work - what's the issue? Can you please enter >>> > an issue in JIRA with steps to reproduce? Also, you could try >>> > WebSphere CE - it should work fine on there. >>> > >>> > Matt >>> > >>> > On 1/5/07, Jonathan Tse <[EMAIL PROTECTED]> wrote: >>> >> Matt, >>> >> >>> >> Login does work. However, I tried to deploy acegi sample app to >>> >> websphere and both login and logout work! Seems it is an appfuse >>> problem >>> >> coz it is a stock appfuse. >>> >> >>> >> Jonathan >>> >> >>> >> Matt Raible wrote: >>> >> > Is it just the logout that doesn't work? Does login work? If it's >>> >> > logout, it's probably related to Acegi's LogoutFilter. >>> >> > >>> >> > Matt >>> >> > >>> >> > On 1/5/07, Jonathan Tse <[EMAIL PROTECTED]> wrote: >>> >> >> Hi all, >>> >> >> >>> >> >> Sorry. It seems that 1.0.3 doesn't work too. I am finding out >>> >> >> why.... >>> >> >> >>> >> >> Best regards, >>> >> >> Jonathan >>> >> >> >>> >> >> Jonathan Tse wrote: >>> >> >> > Hi all, >>> >> >> > >>> >> >> > Just want to let you know that websphere 6.0.2 doesn't >>> work with >>> >> >> > 1.01. When I click logout.jsp, it returns a 404. I have tried >>> >> 1.0.3, >>> >> >> > it works fine. >>> >> >> > >>> >> >> > Please note that appfuse 1.9.3 still bundle acegi 1.0.1. >>> All you >>> >> >> > need to do is replacing the jar. >>> >> >> > >>> >> >> > Best regards, >>> >> >> > jonathan >>> >> >> > >>> >> >> > >>> >> --------------------------------------------------------------------- >>> >> >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >> >> > For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >> > >>> >> >> >>> >> >> >>> --------------------------------------------------------------------- >>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >> >> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >> >>> >> >> >>> >> > >>> >> > >>> >> >>> >> >>> >> --------------------------------------------------------------------- >>> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >>> >> >>> > >>> > >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Websphere-6-doesn%27t-work-with-acegi-1.01-tf2925417s2369.html#a9191918 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]