SEC-243: SessionRegistryImpl no longer incorrectly includes expired sessions.

This commit is contained in:
Ben Alex 2006-04-26 02:36:37 +00:00
parent 948f79e2e2
commit 5f79a25860
1 changed files with 4 additions and 1 deletions

View File

@ -70,7 +70,10 @@ public class SessionRegistryImpl implements SessionRegistry,
Iterator iter = sessionsUsedByPrincipal.iterator();
while (iter.hasNext()) {
String sessionId = (String) iter.next();
list.add(getSessionInformation(sessionId));
SessionInformation sessionInformation = getSessionInformation(sessionId);
if (!sessionInformation.isExpired()) {
list.add(sessionInformation);
}
}
return (SessionInformation[]) list.toArray(new SessionInformation[] {});