code: public void remoteInvalidate(String sessionId, boolean backendUpdate) {
          if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
              LoggingUtil.SESSION_LOGGER_WAS.entering(methodClassName, methodNames[REMOTE_INVALIDATE], "for app " + getId() + " id " + sessionId + " backendUpdate " + backendUpdate);
          }
  
          super.remoteInvalidate(sessionId, backendUpdate);
  
          if (backendUpdate) {
              ((DatabaseHashMap) _sessions).setMaxInactToZero(sessionId, getId());
          }
  
          // now clean this session out of cache -- we do this even if not doing db inval
          Vector v = new Vector(1);
          v.add(sessionId);
          ((BackedHashMap) _sessions).handleDiscardedCacheItems(v.elements());
  
          if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
              LoggingUtil.SESSION_LOGGER_WAS.exiting(methodClassName, methodNames[REMOTE_INVALIDATE], "for app " + getId() + " id " + sessionId);
          }
      }
docs: Then remove the session from cache