Zend\Http\Client::addCookie
Add a cookie
Signature
public function addCookie(SetCookie|string
$cookie,
[string
$value = null,
[string
$expire = null,
[string
$path = null,
[string
$domain = null,
[bool
$secure = false,
[bool
$httponly = true,
[string
$maxAge = null,
[string
$version = null]]]]]]]] )
Parameters
$cookie
—
object
$value
—
string
$expire
—
string
$path
—
string
$domain
—
string
$secure
—
object
$httponly
—
object
$maxAge
—
string
$version
—
string
Returns
- Client
Errors/Exceptions
-
InvalidArgumentException