HttpCookieCollection.Add vs HttpCookieCollection.Set – Does the Request.Cookies collection get copied to the Response.Cookies collection?

There is a difference: Response.Cookies.Add() will allow duplicate cookies to be set http://msdn.microsoft.com/en-us/library/system.web.httpcookiecollection.add.aspx Response.Cookies.Set() will make sure the cookie is unique by first checking to ensure the cookie doesn’t exist http://msdn.microsoft.com/en-us/library/system.web.httpcookiecollection.set.aspx Duplicate cookies typically requires extra handling to determine which is the most recent. I’m not sure of a case when you would want duplicate … Read more