Zend\Http\Cookies::addCookie
Add a cookie to the class. Cookie should be passed either as a Zend\Http\Header\Cookie object or as a string - in which case an object is created from the string.
Signature
public function addCookie(SetCookie|string
$cookie,
[Uri|string
$refUri = null] )
Parameters
$cookie
— object
$refUri
— object- Optional reference URI (for domain, path, secure)