public function withCookie($name, $message = null, $time = 3600)
    {
        if (!is_array($name)) {
            $name = [$name, $message];
        }

        foreach ($name as $key => $message) {
            $this->redirector->getCookieBase()->set($key, $message, $time);
        }

        return $this;
    }