PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

HttpRequest::resetCookies

(PECL pecl_http >= 1.0.0)

HttpRequest::resetCookiesReset cookies

Description

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

Reset all automatically received/sent cookies.

Note:

Note that custom set cookies are not affected.

Parameters

session_only

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

Return Values

Returns TRUE on success or FALSE on failure.

PHP Manual