Re: Invalidating all portlet sessions

Eric Dalquist <[email protected]> Thu, 10 Jul 2008 11:32:24 -0500
Newsgroups gmane.comp.jakarta.pluto.user
Organization DoIT
Message-ID <[email protected]>
We do this in uPortal by using a PortletInvocationListener to track all 
of the sessions that have been created for portlets and then a 
HttpSessionListener which generates Spring ApplicationContext events for 
session created/destroyed events.

Our custom listener: 
https://www.ja-sig.org/svn/uPortal/trunk/uportal-impl/src/main/java/org/jasig/portal/portlet/session/PortletSessionExpirationManager.java
Our session listener: 
https://www.ja-sig.org/svn/uPortal/trunk/uportal-impl/src/main/java/org/jasig/portal/spring/web/context/support/ApplicationContextDelagatingSessionListener.java

-Eric

Anders Olsson wrote:
> Hi!
>
> I have created a simple custom portal based on pluto-portal. From a 
> servlet in my custom portal I want to invalidate all related sessions 
> in my deployed portlet applications, is there an easy way to do this, 
> using the portal-driver?
>
> I suppose one possibility would be to iterate through all configured 
> portlets and trigger an ActionRequest and in each of the portlets make 
> sure that they respond to that request by invalidating the session. 
> But I would just want to know if there's a better/easier way?
>
> All portlets are separate web applications.
>
> Regards
> Anders
>
>
smime.p7s (application/x-pkcs7-signature, 3.3 KB) - not displayed