HttpRequest::addCookies
(no version information, might be only in CVS)
HttpRequest::addCookies -- Add cookies
Description
publicbool
HttpRequest::addCookies ( array cookies )
Add custom cookies.
Note: Affects any request method.
Parameters
cookies
an associative array containing any cookie name/value pairs to add
Return Values
Returns TRUE on success or FALSE on failure.
Examples
Example 1. A HttpRequest::addCookies() example
<?php $r = new HttpRequest; $r->addCookies( array( "cookie_name" => "cookie value", ) ); ?>
|
|
See Also
HttpRequest::setCookies() |