Constructor
__construct(string $name, string $value, int $expire, string $path, string $domain, boolean $secure, boolean $http_only)
Parameters
$name
stringThe name of the cookie
$value
stringThe value to set the cookie with
$expire
intThe time that the cookie should expire
$path
stringThe path of which to restrict the cookie
$domain
stringThe domain of which to restrict the cookie
$secure
booleanFlag of whether the cookie should only be sent over a HTTPS connection
$http_only
booleanFlag 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