HttpResponseWrapper.AppendCookie Method (HttpCookie)

 

Adds an HTTP cookie to the HTTP response cookie collection.

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

public override void AppendCookie(
	HttpCookie cookie
)

Parameters

cookie
Type: System.Web.HttpCookie

The cookie to add to the response.

Exception Condition
HttpException

The cookie was added after the HTTP headers were sent.

.NET Framework
Available since 3.5
Return to top
Show: