Skip to content

BasicCookieStore: preserve creation time on cookie replacement#806

Merged
arturobernalg merged 1 commit into
apache:masterfrom
arturobernalg:cookie-preserve-creation-time-on-replace
Apr 3, 2026
Merged

BasicCookieStore: preserve creation time on cookie replacement#806
arturobernalg merged 1 commit into
apache:masterfrom
arturobernalg:cookie-preserve-creation-time-on-replace

Conversation

@arturobernalg

@arturobernalg arturobernalg commented Feb 20, 2026

Copy link
Copy Markdown
Member

This change makes BasicCookieStore#addCookie preserve the original cookie creation-time when replacing an equivalent cookie, instead of resetting it on every update.

"Update the creation-time of the newly created cookie to match the creation-time of the old-cookie."
https://datatracker.ietf.org/doc/html/rfc6265#section-5.3

Required by RFC 6265 Section 5.3; affects cookie ordering (Section 5.4)
@arturobernalg arturobernalg requested a review from ok2c February 20, 2026 09:21
@ok2c

ok2c commented Feb 21, 2026

Copy link
Copy Markdown
Member

@arturobernalg The description does not seem to match the changes.

@arturobernalg

Copy link
Copy Markdown
Member Author

@arturobernalg The description does not seem to match the changes.

@ok2c a mix between PR's.

@arturobernalg arturobernalg merged commit c586766 into apache:master Apr 3, 2026
10 checks passed
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.

2 participants