parseCookieHeader()
parseCookieHeader(string $cookieHeader) : array
Parse a cookie header according to RFC 6265.
PHP will replace special characters in cookie names, which results in other cookies not being available due to overwriting. Thus, the server request should take the cookies from the request header instead.
Parameters
string | $cookieHeader | A string cookie header value. |
Returns
array —key/value cookie pairs.