System.Web.HttpCookieCollection.Remove Method

Removes the cookie with the specified name from the collection.

Syntax

public void Remove (string name)

Parameters

name
The name of the cookie to remove from the collection.

Remarks

If a cookie with the specified name does not exist in the collection, no exception is thrown.

Requirements

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