I have a problem.
When you add multiple Set-Cookie headers to the response
headers.Add("Set-Cookie", "a=b;Path=/;"); headers.Add("Set-Cookie", "c=d;Path=/;");
in fact, they are merged and only one header is sent with comma-delimited cookies
Set-Cookie: a=b;Path=/;,c=d;Path=/;
According to RFC2109, it is a valid syntax. But this is not consistent with RFC6265 , which depreciates RFC2109
In addition, recent browsers do not support this comma-separated syntax. Tested on IE9 , Firefox 13 and Google Chrome 20 .
All of these browsers used only the first cookie.
Please see example project below.
https://github.com/mnaoumov/cookie-bug/
I want to find some workaround.
I expect two different Set-Cookie headers.
I tried to write some MessageInspector to rewrite HTTP headers. I could not find how to access these headers.
Any ideas?
PS Technology Used: Web Interface
api cookies web
mnaoumov Jul 18 '12 at 3:27 2012-07-18 03:27
source share