- cookie
- The System.Web.HttpCookie object to update.
The HttpCookieCollection.Set(HttpCookie) method first checks to see if a cookie already exists in the collection and if so updates it. The HttpCookieCollection.Set(HttpCookie) method does not allow duplicate cookies in the cookie collection. To add duplicate cookies in the cookie collection, use the HttpCookieCollection.Add(HttpCookie) method.