HttpRequest
PHP 手册

HttpRequest::resetCookies

(PECL pecl_http >= 1.0.0)

HttpRequest::resetCookiesReset cookies

说明

public bool HttpRequest::resetCookies ([ bool $session_only = false ] )

Reset all automatically received/sent cookies.

Note:

Note that custom set cookies are not affected.

参数

session_only

whether only session cookies should be reset (needs libcurl >= v7.15.4, else libcurl >= v7.14.1)

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE


HttpRequest
PHP 手册