Skip to content

Comments

BasicCookieStore: preserve creation time on cookie replacement#806

Open
arturobernalg wants to merge 1 commit intoapache:masterfrom
arturobernalg:cookie-preserve-creation-time-on-replace
Open

BasicCookieStore: preserve creation time on cookie replacement#806
arturobernalg wants to merge 1 commit intoapache:masterfrom
arturobernalg:cookie-preserve-creation-time-on-replace

Conversation

@arturobernalg
Copy link
Member

@arturobernalg arturobernalg commented Feb 20, 2026

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
Copy link
Member

ok2c commented Feb 21, 2026

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

@arturobernalg
Copy link
Member Author

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

@ok2c a mix between PR's.

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