code: public function removeAll(): array
      {
          $res = [];
          foreach ($this->getKeys() as $key) {
              $res[$key] = $this->remove($key);
          }
          return $res;
      }
docs: It clears the session by removing all stored variables.
  @return mixed[] The array of removed vars.