code: @Override
      public void invalidate() {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
              Tr.event(tc, "Invalidating session; " + this);
          }
          this.valid = false;
          destroy();
      }
docs: /*
  @see javax.servlet.http.HttpSession#invalidate()