Skip to content
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

Multiple cookie with the same name #1248

Closed
ls0f opened this issue Nov 10, 2014 · 1 comment
Closed

Multiple cookie with the same name #1248

ls0f opened this issue Nov 10, 2014 · 1 comment

Comments

@ls0f
Copy link

ls0f commented Nov 10, 2014

I read the source code of the set_cookie function,tornado don't support multiple cookie with the same name. What is the purpose of it?

@bdarnell
Copy link
Member

The cookie protocol doesn't really support multiple cookies with the same name. It kind of almost works if you reuse the name but vary the domain and path attributes, but because of the way the Cookie header works you can't distinguish these cases and so it never really makes sense to do this on purpose. We simply inherit the stdlib's Cookie module's behavior here.

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

No branches or pull requests

2 participants