public function setCookie(string $name, string $value='', int $expire=0, string $path='', string $domain='', bool $secure=false, bool $httponly=false)
  {
    # Prepare the Cookie
    $cookie = array();
    $cookie['name'] = $name;
    $cookie['value'] = $value;
    $cookie['expire'] = $expire;
    $cookie['path'] = $path;
    $cookie['domain'] = $domain;
    $cookie['secure'] = $secure;
    $cookie['httponly'] = $httponly;
    # Add the cookie to the cookies array
    $this->cookies[$name] = $cookie;

    return $this;
  }