Zend\Http\Header\SetCookie::match
Checks whether the cookie should be sent or not in a specific scenario
Signature
Parameters
$uri
— object- URI to check against (secure, domain, path)
$matchSessionCookies
— object- Whether to send session cookies
$now
— int- Override the current time when checking for expiry time
Returns
- bool
Errors/Exceptions
-
InvalidArgumentException
- If URI does not have HTTP or HTTPS scheme.