Adding multiple Set-Cookie Headers in ASP.NET Web

前端 未结 2 2037
情歌与酒
情歌与酒 2020-12-05 09:58

I faced a problem.

When you add multiple Set-Cookie headers to the response

headers.Add(\"Set-Cookie\", \"a=b;Path=/;\");
headers.Ad         


        
2条回答
  •  盖世英雄少女心
    2020-12-05 10:12

    According to answer on codeplex (http://aspnetwebstack.codeplex.com/workitem/288) this issue is known issue and related to WCF self-hosting and should be fixed by moving to IIS hosting.

    This is WCF 4 issue which marked as won't fix.

    Found another question with the same outcome WCF 4.0 Cookie Only First is Recorded by Browser.

提交回复
热议问题