414833 HttpSessionListener.destroy must be invoked in reverse order
This commit is contained in:
parent
b17696325b
commit
8cf2744226
|
@ -797,8 +797,10 @@ public abstract class AbstractSessionManager extends AbstractLifeCycle implement
|
|||
if (invalidate && _sessionListeners!=null)
|
||||
{
|
||||
HttpSessionEvent event=new HttpSessionEvent(session);
|
||||
for (HttpSessionListener listener : _sessionListeners)
|
||||
listener.sessionDestroyed(event);
|
||||
for (int i = _sessionListeners.size()-1; i>=0; i--)
|
||||
{
|
||||
_sessionListeners.get(i).sessionDestroyed(event);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue