public function regenerateID($deleteOldSession = false)
    {
        if ($this->getIsActive()) {
            return $this->handler->regenerateId($this->id, $this->app, $deleteOldSession);
        }
        return \Reaction\Promise\reject(new Reaction\Exceptions\SessionException('Session is not active'));
    }