HttpCookieCollection::Set Method (HttpCookie^)
.NET Framework (current version)
Updates the value of an existing cookie in a cookie collection.
Assembly: System.Web (in System.Web.dll)
Parameters
- cookie
-
Type:
System.Web::HttpCookie^
The HttpCookie object to update.
The Set method first checks to see if a cookie already exists in the collection and if so updates it. The Set method does not allow duplicate cookies in the cookie collection. To add duplicate cookies in the cookie collection, use the Add method.
.NET Framework
Available since 1.1
Available since 1.1
Show: