$name
$name :
The name of the cookie
ResponseCookie
Class to represent an HTTP response cookie
__construct(string $name, string $value = null, integer $expire = null, string $path = null, string $domain = null, boolean $secure = false, boolean $http_only = false)
Constructor
string | $name | The name of the cookie |
string | $value | The value to set the cookie with |
integer | $expire | The time that the cookie should expire |
string | $path | The path of which to restrict the cookie |
string | $domain | The domain of which to restrict the cookie |
boolean | $secure | Flag of whether the cookie should only be sent over a HTTPS connection |
boolean | $http_only | Flag of whether the cookie should only be accessible over the HTTP protocol |
setName(string $name) : \app\framework\Component\Route\Klein\ResponseCookie
Sets the cookie's name
string | $name |
setValue(string $value) : \app\framework\Component\Route\Klein\ResponseCookie
Sets the cookie's value
string | $value |
setExpire(integer $expire) : \app\framework\Component\Route\Klein\ResponseCookie
Sets the cookie's expire time
The time should be an integer representing a Unix timestamp
integer | $expire |
setPath(string $path) : \app\framework\Component\Route\Klein\ResponseCookie
Sets the cookie's path
string | $path |
setDomain(string $domain) : \app\framework\Component\Route\Klein\ResponseCookie
Sets the cookie's domain
string | $domain |
setSecure(boolean $secure) : \app\framework\Component\Route\Klein\ResponseCookie
Sets the cookie's secure only flag
boolean | $secure |
setHttpOnly(boolean $http_only) : \app\framework\Component\Route\Klein\ResponseCookie
Sets the cookie's HTTP only flag
boolean | $http_only |