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: