Author: sohil.shah(a)jboss.com
Date: 2007-06-15 13:38:50 -0400 (Fri, 15 Jun 2007)
New Revision: 7446
Modified:
trunk/server/src/main/org/jboss/portal/server/aspects/server/SessionInvalidatorInterceptor.java
Log:
minor fix for session invalidation -
http://jira.jboss.com/jira/browse/JBPORTAL-1488
Modified:
trunk/server/src/main/org/jboss/portal/server/aspects/server/SessionInvalidatorInterceptor.java
===================================================================
---
trunk/server/src/main/org/jboss/portal/server/aspects/server/SessionInvalidatorInterceptor.java 2007-06-15
17:36:58 UTC (rev 7445)
+++
trunk/server/src/main/org/jboss/portal/server/aspects/server/SessionInvalidatorInterceptor.java 2007-06-15
17:38:50 UTC (rev 7446)
@@ -138,8 +138,26 @@
}
}
- // Finally invalidate this session
- session.invalidate();
+ //Finally invalidate this session
+ try
+ {
+ session.invalidate();
+ }
+ catch(IllegalStateException stateException)
+ {
+ if(stateException.toString().indexOf("invalidate: Session already
invalidated") != -1)
+ {
+ //This means Tomcat SSO is probably turned on and part of invalidating the
other war context's
+ //session, this Portal's session has been invalidated as well
+
+ //No need to do anything
+ }
+ else
+ {
+ //This is a real issue, don't eat this
+ throw stateException;
+ }
+ }
}
}