$data
$data : array
Set-Cookie object
setName(string $name) : \Guzzle\Plugin\Cookie\Cookie
Set the cookie name
string | $name | Cookie name |
setValue(string $value) : \Guzzle\Plugin\Cookie\Cookie
Set the cookie value
string | $value | Cookie value |
setDomain(string $domain) : \Guzzle\Plugin\Cookie\Cookie
Set the domain of the cookie
string | $domain |
setPath(string $path) : \Guzzle\Plugin\Cookie\Cookie
Set the path of the cookie
string | $path | Path of the cookie |
setMaxAge(integer $maxAge) : \Guzzle\Plugin\Cookie\Cookie
Set the max-age of the cookie
integer | $maxAge | Max age of the cookie in seconds |
setExpires(integer $timestamp) : \Guzzle\Plugin\Cookie\Cookie
Set the unix timestamp for which the cookie will expire
integer | $timestamp | Unix timestamp |
setVersion(string|integer $version) : \Guzzle\Plugin\Cookie\Cookie
Set the cookie version
string|integer | $version | Version to set |
setSecure(boolean $secure) : \Guzzle\Plugin\Cookie\Cookie
Set whether or not the cookie is secure
boolean | $secure | Set to true or false if secure |
setDiscard(boolean $discard) : \Guzzle\Plugin\Cookie\Cookie
Set whether or not this is a session cookie
boolean | $discard | Set to true or false if this is a session cookie |
setComment(string $comment) : \Guzzle\Plugin\Cookie\Cookie
Set the comment of the cookie
string | $comment | Cookie comment |
setCommentUrl(string $commentUrl) : \Guzzle\Plugin\Cookie\Cookie
Set the comment URL of the cookie
string | $commentUrl | Cookie comment URL for more information |
setPorts(array $ports) : \Guzzle\Plugin\Cookie\Cookie
Set a list of acceptable ports this cookie can be used with
array | $ports | Array of acceptable ports |
setHttpOnly(boolean $httpOnly) : \Guzzle\Plugin\Cookie\Cookie
Set whether or not this is an HTTP only cookie
boolean | $httpOnly | Set to true or false if this is HTTP only |
setAttribute(string $name, string $value) : \Guzzle\Plugin\Cookie\Cookie
Set a cookie data attribute
string | $name | Name of the attribute to set |
string | $value | Value to set |
setData(string $key, string $value) : \Guzzle\Plugin\Cookie\Cookie
Set a value and return the cookie object
string | $key | Key to set |
string | $value | Value to set |