JETTY-1259 further update
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2647 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
892bd690e0
commit
0109d0cbe6
|
@ -1,5 +1,6 @@
|
|||
|
||||
jetty-7.3.0-SNAPSHOT
|
||||
+ JETTY-1259 NullPointerException in JDBCSessionIdManager when invalidating session (further update)
|
||||
+ 320457 add SPNEGO support
|
||||
+ 324505 Implement API login
|
||||
+ 332179 Fixed formatting of negative dates
|
||||
|
|
|
@ -675,11 +675,15 @@ public class JDBCSessionIdManager extends AbstractSessionIdManager
|
|||
Handler[] contexts = _server.getChildHandlersByClass(ContextHandler.class);
|
||||
for (int i=0; contexts!=null && i<contexts.length; i++)
|
||||
{
|
||||
SessionManager manager = ((SessionHandler)((ContextHandler)contexts[i]).getChildHandlerByClass(SessionHandler.class)).getSessionManager();
|
||||
|
||||
if (manager instanceof JDBCSessionManager)
|
||||
{
|
||||
((JDBCSessionManager)manager).expire(expiredSessionIds);
|
||||
|
||||
SessionHandler sessionHandler = (SessionHandler)((ContextHandler)contexts[i]).getChildHandlerByClass(SessionHandler.class);
|
||||
if (sessionHandler != null)
|
||||
{
|
||||
SessionManager manager = sessionHandler.getSessionManager();
|
||||
if (manager != null && manager instanceof JDBCSessionManager)
|
||||
{
|
||||
((JDBCSessionManager)manager).expire(expiredSessionIds);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue