Accepts an arbitrary number of parameters (up to 7) or an associative
array in the first parameter containing all the values.
public set_cookie ( string | mixed[] $name, string $value = '', integer $expire = '', string $domain = '', string $path = '/', string $prefix = '', boolean $secure = FALSE, boolean $httponly = FALSE ) : void | ||
$name | string | mixed[] | Cookie name or an array containing parameters |
$value | string | Cookie value |
$expire | integer | Cookie expiration time in seconds |
$domain | string | Cookie domain (e.g.: '.yourdomain.com') |
$path | string | Cookie path (default: '/') |
$prefix | string | Cookie name prefix |
$secure | boolean | Whether to only transfer cookies via SSL |
$httponly | boolean | Whether to only makes the cookie accessible via HTTP (no javascript) |
return | void | modified by ci-phpunit-test |