patch provided by Keiichi Fujino
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@786124
13f79535-47bb-0310-9956-
ffa450edef68
// use container maxInactiveInterval so that session will expire correctly in case of primary transfer
session.setMaxInactiveInterval(getMaxInactiveInterval());
session.access();
- if(notifySessionListenersOnReplication)
+ if(notifySessionListenersOnReplication) {
session.setId(msg.getSessionID());
- else
+ } else {
session.setIdInternal(msg.getSessionID());
+ add(session);
+ }
session.resetDeltaRequest();
session.endAccess();