HttpCookieCollection Class
.NET Framework 3.0
Provides a type-safe way to manipulate HTTP cookies.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The following code example demonstrates how to read cookies using the Cookies property of the HttpRequest object and write cookies using the Cookies property of the HttpResponse object. Both properties return HttpCookieCollection objects. If either of two cookies named userName and lastVisit are not in the HTTP request, then they are created in the HTTP response. If the two cookies exist, the properties of the cookies are displayed.
System.Object
System.Collections.Specialized.NameObjectCollectionBase
System.Web.HttpCookieCollection
System.Collections.Specialized.NameObjectCollectionBase
System.Web.HttpCookieCollection
Community Additions
ADD
Show: