@Override public void invalidateAll (String id) { //tell all contexts that may have a session object with this id to //get rid of them for (SessionHandler manager:getSessionHandlers()) { manager.invalidate(id); } }
/** Generate a new id for a session and update across * all SessionManagers. * * @see org.eclipse.jetty.server.SessionIdManager#renewSessionId(java.lang.String, java.lang.String, javax.servlet.http.HttpServletRequest) */ @Override public String renewSessionId (String oldClusterId, String oldNodeId, HttpServletRequest request) { //generate a new id String newClusterId = newSessionId(request.hashCode()); //TODO how to handle request for old id whilst id change is happening? //tell all contexts to update the id for (SessionHandler manager:getSessionHandlers()) { manager.renewSessionId(oldClusterId, oldNodeId, newClusterId, getExtendedId(newClusterId, request)); } return newClusterId; }
/** * Remove an id from use by telling all contexts to remove a session with this id. * * @see org.eclipse.jetty.server.SessionIdManager#expireAll(java.lang.String) */ @Override public void expireAll(String id) { if (LOG.isDebugEnabled()) LOG.debug("Expiring {}",id); for (SessionHandler manager:getSessionHandlers()) { manager.invalidate(id); } }
for (SessionHandler manager:getSessionHandlers())