Author: sohil.shah(a)jboss.com
Date: 2007-06-15 13:36:58 -0400 (Fri, 15 Jun 2007)
New Revision: 7445
Modified:
branches/JBoss_Portal_Branch_2_4/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:
branches/JBoss_Portal_Branch_2_4/server/src/main/org/jboss/portal/server/aspects/server/SessionInvalidatorInterceptor.java
===================================================================
---
branches/JBoss_Portal_Branch_2_4/server/src/main/org/jboss/portal/server/aspects/server/SessionInvalidatorInterceptor.java 2007-06-15
15:44:35 UTC (rev 7444)
+++
branches/JBoss_Portal_Branch_2_4/server/src/main/org/jboss/portal/server/aspects/server/SessionInvalidatorInterceptor.java 2007-06-15
17:36:58 UTC (rev 7445)
@@ -135,7 +135,25 @@
}
// Finally invalidate this session
- session.invalidate();
+ 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;
+ }
+ }
}
}