Re:Ask HN: What are problems with implementing authenticatio...
by aichbauer on Saturday March 07, 2020 @01:30PM
(#22513124)
I did not know that before. I mean of course you can differentiate between them because of the path and domain, but still this can cause problems. Do you have an example of when you would like to have the same cookie for different domains or paths? Is it most likely a problem that occurs when programmers create cookies for the wrong path or domain. Or would you say there is a use case for that?
[ Parent
| on HN ]
Re:Ask HN: What are problems with implementing authenticatio...
by shynrou on Saturday March 07, 2020 @07:32PM
(#22515340)
The server does not receive the path and domain infos so you cant differentiate at that point.
Jeah, domain wise if you have a cookie set for example.com and test.example.com, if the user is on the later it would send both cookies. This may be wanted for a common login system. In general yes it can be avoided if potential conflicting apps use different cookie names by default.