public function unsetCookie($name, $path = '/')
    {
        setcookie($name, '', time() - 86400, '/', '', 0);
        if (isset($_COOKIE) && isset($_COOKIE[$name])) {
            unset($_COOKIE[$name]);
        }
        if (isset($this->request->cookie[$name])) {
            unset($this->request->cookie[$name]);
        }
    }