Sets a cookie.
public setCookie ( string $name, string $value, string $expire = null, string $path = '/', string $domain = '', boolean $secure = false, boolean $httpOnly = false ) | ||
$name | string | HTTP header name |
$value | string | Value for the cookie |
$expire | string | Cookie expiration period |
$path | string | Path |
$domain | string | Domain name |
$secure | boolean | If secure |
$httpOnly | boolean | If uses only HTTP |