Set a cookie.
public static setCookie ( string $name, string | null $value, array | null $params = null, boolean $throw = true ) | ||
$name | string | The name of the cookie. |
$value | string | null | The value of the cookie. Set to NULL to delete the cookie. |
$params | array | null | Cookie parameters. |
$throw | boolean | Whether to throw exception if setcookie() fails. |