HttpRequest
PHP Manual

HttpRequest::resetCookies

(PECL pecl_http >= 1.0.0)

HttpRequest::resetCookiesReset cookies

Descrição

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

Reset all automatically received/sent cookies.

Nota:

Note that custom set cookies are not affected.

Parâmetros

session_only

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

Valor Retornado

Retorna TRUE em caso de sucesso ou FALSE em caso de falha.


HttpRequest
PHP Manual