Skip to content

Get Named Cookie seems broken for multiple cookies with the same name #1892

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

Open
johannhof opened this issue Apr 12, 2025 · 1 comment
Open

Comments

@johannhof
Copy link
Member

Get Named Cookie seems oblivious to the fact that there can be multiple cookies with the same name in the same context, e.g. through having a different Path. The spec (which seems broken in various ways) seems to assume that there is only one cookie with a given name.

We could refer to the sorting (step 2) in the Cookies RFC (though that mentions it might not be reliable), but it's probably preferable to simply integrate with the new Cookie Layering spec instead.

Ideally, we should offer a way to get all Cookies of the same name.

cc @annevk @DCtheTall

@annevk
Copy link
Member

annevk commented Apr 14, 2025

What happens in implementations today?

cc @burg @sysrqb

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

No branches or pull requests

3 participants