Constructor
__construct(string $name, string $value, int $expire, string $path, string $domain, boolean $secure, boolean $http_only)
Parameters
$name
string
The name of the cookie
$value
string
The value to set the cookie with
$expire
int
The time that the cookie should expire
$path
string
The path of which to restrict the cookie
$domain
string
The domain of which to restrict the cookie
$secure
boolean
Flag of whether the cookie should only be sent over a HTTPS connection
$http_only
boolean
Flag of whether the cookie should only be accessible over the HTTP protocol
Sets the cookie's domain
setDomain(string $domain) : \Klein\ResponseCookie
Parameters
$domain
string
Returns