Method | Description | |
---|---|---|
get ( string $key, string $default = null ) : mixed | Get a cookie value | |
remove ( string $key, string $domain = '/' ) : mixed | Remove a cookie | |
set ( string $key, string $value, integer $expires = 3600, string $domain = '/' ) : boolean | Set a new cookie |
static public set ( string $key, string $value, integer $expires = 3600, string $domain = '/' ) : boolean | ||
$key | string | The name of the cookie |
$value | string | The cookie content |
$expires | integer | The number of seconds until the cookie expires |
$domain | string | The domain to set this cookie for. |
return | boolean | true: the cookie has been created, false: cookie creation failed |