Return an array of all cookies matching a specific request according to the request URI, whether session cookies should be sent or not, and the time to consider as "now" when checking cookie expiry time.
Signature
public function getMatchingCookies(Uri
$uri,
[bool
$matchSessionCookies = true,
[int
$retAs = self::COOKIE_OBJECT,
[int
$now = null]]] )
Parameters
$uri
—
object
URI to check against (secure, domain, path)
$matchSessionCookies
—
object
Whether to send session cookies
$retAs
—
int
Whether to return cookies as objects of \Zend\Http\Header\Cookie or as strings
$now
—
int
Override the current time when checking for expiry time