System.Web.HttpResponse.SetCookie Method

Updates an existing cookie in the cookie collection.

Syntax

public void SetCookie (HttpCookie cookie)

Parameters

cookie
The cookie in the collection to be updated.

Remarks

The cookie is added to the list of cookies that will be sent back to the HTTP client.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0