I have an ASP.NET app that is returning two Set-Cookie headers for ASP.NET_SessionId. The following appears twice:
Set-Cookie: ASP.NET_SessionId=2alwzlvkg2ckvi43s3y0t3lm; path=/; HttpOnly
This is happening both locally and on our development and QA servers.
The value set is the same so it doesn't appear to cause any problems, however I'm curious to know why two Set-Cookie headers are being returned to the client.
I have searched the application's code, looked through the web.config and Googled for an explanation, but I am unable to pinpoint the reason for the duplicate headers. Any ideas?