Если атрибуты max-Age и Expires имеют значения, какое значение следует учитывать при проверке истечения срока действия файла cookie или нет? Согласно rfc-6265,
A cookie is "expired" if the cookie has an expiry date in the past.
Finally, to remove a cookie, the server returns a Set-Cookie header
with an expiration date in the past.
Но это так же говорит,
If a cookie has both the Max-Age and the Expires attribute, the Max-
Age attribute has precedence and controls the expiration date of the
cookie.