Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpCookieCollection Constructor ()

 

Initializes a new instance of the HttpCookieCollection class.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public:
HttpCookieCollection()

ASP.NET includes two intrinsic cookie collections. The collection accessible through Cookies contains cookies transmitted by the client to the server in the Cookie header. The collection accessible through Cookies contains cookies generated on the server and transmitted to the client in the Set-Cookie header.

The following example creates a new cookie collection object and fills it with the cookies received from the client.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft