HttpCookieCollection Class
.NET Framework 2.0
Provides a type-safe way to manipulate HTTP cookies.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
System.Web Namespace
HttpCookie Class
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
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Reference
HttpCookieCollection MembersSystem.Web Namespace
HttpCookie Class
Other Resources
ASP.NET CookiesCommunity Additions
ADD
Show: