Is it valid in HTTP (and does it work reliably) to send multiple cookies with the same name in the same HTTP Set-Cookie response header?
The response would be similar to:
Set-Cookie: NAME=bad; path=/notthere; expires=getridofthiscookie
Set-Cookie: NAME=good; path=/
Set-Cookie: NAME=bad; domain=a.subdomain; expires=getridofthisaswell
The purpose is to get rid of extraneous cookies ('bad' cookies) created with the wrong path (or on a subdomain) which is leading to less-than-desirable cookie values sent to the server depending on the request path/domain.
Related