http\Cookie http\Cookie::setCookie(string $cookie_name, string $cookie_value)

(Re)set a cookie. See http\Cookie::addCookie() and http\Cookie::setCookies().

NOTE:
The cookie will be deleted from the list if $cookie_value is NULL.

Params:

Returns:

Throws: