public function regenerateId() : bool
    {
        $id = $this->generateSessionId();

        if ($this->storage->updateId($this->id, $id)) {
            $this->id = $id;

            return true;
        }

        return false;
    }