CookieHandler.Delete Method (String)

.NET Framework (current version)
 

Deletes the cookie associated with the current request that has the specified name and the default domain and path.

Namespace:   System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

public void Delete(
	string name
)

Parameters

name
Type: System.String

The name of the cookie.

Exception Condition
ArgumentNullException

name is null or empty.

The domain and path are specified by the Domain and Path properties. The request is specified by HttpContext.Current

.NET Framework
Available since 4.5
Return to top
Show: