Hello,

My Tomcat's (5.5.26) currently print 'INFO: Manager [] expiring sessions upon 
shutdown' on shutdown.
This triggers my SessionListeners which prints a lot of these lines.
[nl.base.servlets.SessionListener] Logout: [EMAIL PROTECTED] [userid=43321]
[nl.base.servlets.SessionListener] Logout: [EMAIL PROTECTED] [userid=502000]

My SessionListener calls session.remove(user). Is this delegated to the other 
nodes in my cluster? That would mean my users are logged out if I bring down 1 
node in my cluster. Is this possible?

In DeltaManager.java session.expire(true, isExpireSessionOnShutdown) is called. 
This is DeltaSession.expire(...). The boolean isExpireOnShutdown means 
notifyCluster there. So if expireSessionOnShutdown is false, my sessions are 
invalidated localy, which calls my SessionListener, which logs out my user, but 
it doesn't notify the cluster about is.
I don't think this is expected behaviour for a cluster. One node going down 
shouldn't call the SessionListener.sessionDestroyed method.

Or not?

Ronald. 

Reply via email to