New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect handling of negative MaxAge cookie attribute #55

milesich opened this Issue Apr 15, 2016 · 1 comment


None yet
2 participants
Copy link

milesich commented Apr 15, 2016

Currently cookies with negative Max-Age attribute will throw en exception. But according to RFC6265:

If the first character of the attribute-value is not a DIGIT or a "-" character, ignore the cookie-av.

I found this problem when I was trying to import a feed using Zend\Feed\Reader\Reader::import and in the feed headers was this cookie:

Set-Cookie: wpSGCacheBypass=0; expires=Fri, 15-Apr-2016 07:10:31 GMT; Max-Age=-3600; path=/


This comment has been minimized.

Copy link

Xerkus commented Oct 30, 2017

Fixed in #120

@Xerkus Xerkus closed this Oct 30, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment