Skip to content

Conversation

@dorfsmay
Copy link

Export cookies is using cookie.toText, creating one line per cookie with either 6 or 7 tab separated field (or even 8 if you could set both maxAge and expires at the same time for a given cookie).

This PR forces the line to always be exactly 7 tab separated fields, using the assumption that expires has precedence on maxAge and that if neither is set than it is a session based cookie (see http://mrcoles.com/blog/cookies-max-age-vs-expires/).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant