code: @Override
      public void remoteInvalidate(String sessionId, boolean backendUpdate) {
          super.remoteInvalidate(sessionId, backendUpdate);
  
          if (backendUpdate) {
              ((CacheHashMap) _sessions).setMaxInactToZero(sessionId, getId());
          }
  
          // now clean this session out of cache -- we do this even if not doing db inval
          Enumeration<String> e = Collections.enumeration(Collections.singleton(sessionId));
          ((BackedHashMap) _sessions).handleDiscardedCacheItems(e);
      }
docs: Then remove the session from cache