public function addCookie($name, $value = '', $expire = 0, $path = '', $domain = '', $secure = false, $httponly = false) {
        if ($this->canSetHeaders()) {
            $this->cookies[] = func_get_args();
        }
    }