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 |