Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Edited Issue: Multiple cookies and Set-Cookie headers [288]

$
0
0
Current implementation has issue with cookies.

When you invoke

response.Headers.Add("Set-Cookie", "a=b;Path=/;");
response.Headers.Add("Set-Cookie", "c=d;Path=/;");

Actually only one Set-Cookie header is sent with comma-separated cookies.
Set-Cookie:a=b;Path=/;,c=d;Path=/;,e=f;Path=/;

But no browsers understand such syntax (it's against RFC6265).

And actually only first cookie is set.

For more details and code examples see
http://stackoverflow.com/questions/11533867/set-cookie-header-with-multiple-cookies

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>