Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-10 Thread Andreas Brenk
You could use a HttpSessionListener to keep the coupling to Acegi Security separate from your controller. See http://forum.springframework.org/viewtopic.php?t=1106 for an earlier discussion. Perhaps this should be mentioned in the upgrade readme. Regards, Andreas Matt Raible wrote: With Acegi S

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-10 Thread Ben Alex
Andreas Brenk wrote: You could use a HttpSessionListener to keep the coupling to Acegi Security separate from your controller. See http://forum.springframework.org/viewtopic.php?t=1106 for an earlier discussion. Perhaps this should be mentioned in the upgrade readme. Regards, Andreas Matt Raibl

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-10 Thread Matt Raible
Ben Alex wrote: Andreas Brenk wrote: You could use a HttpSessionListener to keep the coupling to Acegi Security separate from your controller. See http://forum.springframework.org/viewtopic.php?t=1106 for an earlier discussion. Perhaps this should be mentioned in the upgrade readme. Regards, An

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-10 Thread Matt Raible
Ben Alex wrote: It seems to work OK for me in Tomcat 5.5 with the Contacts Sample application's logout.jsp. I tried building/deploying the contacts WAR with maven (according to the Building with Maven instructions) - there is no web.xml included in the WAR file. Matt --

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-10 Thread Ben Alex
Matt Raible wrote: Ben Alex wrote: It seems to work OK for me in Tomcat 5.5 with the Contacts Sample application's logout.jsp. I tried building/deploying the contacts WAR with maven (according to the Building with Maven instructions) - there is no web.xml included in the WAR file. Matt You ne

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-11 Thread Matt Raible
Ben Alex wrote: Andreas Brenk wrote: You could use a HttpSessionListener to keep the coupling to Acegi Security separate from your controller. See http://forum.springframework.org/viewtopic.php?t=1106 for an earlier discussion. Perhaps this should be mentioned in the upgrade readme. Regards, An

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-11 Thread Ben Alex
Matt Raible wrote: For some reason, calling session.invalidate() (in a filter or in a JSP) doesn't seem to help get rid of any Acegi authentication information. Adding ContextHolder.setContext(null) in a filter that's mapped to logout.jsp seems to be the only thing that works for me. Here's m

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-11 Thread Matt Raible
On Mar 11, 2005, at 2:17 AM, Ben Alex wrote: Matt Raible wrote: For some reason, calling session.invalidate() (in a filter or in a JSP) doesn't seem to help get rid of any Acegi authentication information. Adding ContextHolder.setContext(null) in a filter that's mapped to logout.jsp seems to

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-11 Thread Matt Raible
On Mar 11, 2005, at 6:28 AM, Matt Raible wrote: On Mar 11, 2005, at 2:17 AM, Ben Alex wrote: Matt Raible wrote: For some reason, calling session.invalidate() (in a filter or in a JSP) doesn't seem to help get rid of any Acegi authentication information. Adding ContextHolder.setContext(null) in

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-12 Thread Ben Alex
Matt Raible wrote: Here's a link to AppFuse's applicationContext-security.xml file - the filters are specified in the first bean at the top. http://tinyurl.com/6y4jd Matt, did you get it working in the end? As the Contacts Sample is working, it points to configuration. I checked the URL above a

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-14 Thread Matt Raible
On Mar 12, 2005, at 6:46 PM, Ben Alex wrote: Matt Raible wrote: Here's a link to AppFuse's applicationContext-security.xml file - the filters are specified in the first bean at the top. http://tinyurl.com/6y4jd Matt, did you get it working in the end? Nope. As the Contacts Sample is working, it

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-14 Thread Matt Raible
FYI... I just upgraded the sample app for Spring Live to 0.8.0 and I'm experiencing this same issue. Invalidating the session does not logout a user. I'll dig into Acegi Security code later tonight and see if the ContextHolder is still holding an Authentication object outside of the sessi

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-15 Thread Matt Raible
I was able to reproduce this problem in the Contacts sample application. If logout.jsp *doesn't* do a redirect, the problem occurs and the user stays logged in. If it *does* a redirect, everything works and the user is logged out and prompted to login again. I'm guessing the desired behavior

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-16 Thread Ray Krueger
On Tue, 15 Mar 2005 06:00:42 -0700, Matt Raible <[EMAIL PROTECTED]> wrote: > I was able to reproduce this problem in the Contacts sample > application. If logout.jsp *doesn't* do a redirect, the problem occurs > and the user stays logged in. If it *does* a redirect, everything works > and the use

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-17 Thread Ben Alex
Ray Krueger wrote: I was able to reproduce this problem in the Contacts sample application. If logout.jsp *doesn't* do a redirect, the problem occurs and the user stays logged in. If it *does* a redirect, everything works and the user is logged out and prompted to login again. I have now fi

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-18 Thread Matt Raible
On Mar 17, 2005, at 4:51 PM, Ben Alex wrote: Ray Krueger wrote: I was able to reproduce this problem in the Contacts sample application. If logout.jsp *doesn't* do a redirect, the problem occurs and the user stays logged in. If it *does* a redirect, everything works and the user is logged out a

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-18 Thread Ben Alex
Matt Raible wrote: I updated from CVS and tried the new JAR on AppFuse and the security chapter's sample application. The behavior continues to happen. I'll try it on the Contacts sample app in few days. Maybe anonymous CVS is not in synch. Perhaps... The latest version of HttpSessionContex

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-19 Thread Matt Raible
On Mar 18, 2005, at 7:40 PM, Ben Alex wrote: Matt Raible wrote: I updated from CVS and tried the new JAR on AppFuse and the security chapter's sample application. The behavior continues to happen. I'll try it on the Contacts sample app in few days. Maybe anonymous CVS is not in synch. Perha

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-20 Thread Ben Alex
Matt Raible wrote: Unfortunately, I looked at HttpSessionContextIntegrationFilter.java and found that I did use version 1.4 in my tests. Matt, I'm pretty sure it works fine now. I'm using Tomcat 5.5.7 on Win32 with JDK 1.5.0_01. I've edited the standard logout.jsp used in the Contacts Sample to

Re: [Acegisecurity-developer] session.invalidate() vs. ContextHolder.setContext(null)

2005-03-21 Thread Matt Raible
I was able to confirm that the contacts-filter sample works fine. I'm fine with a 0.8.1 since I have workarounds (redirect and ContextHolder.setContext(null)) for both my apps. Matt On Mar 20, 2005, at 3:38 PM, Ben Alex wrote: Matt Raible wrote: Unfortunately, I looked at HttpSessionContextIn