CookieHandler.Delete Method (String, String, String, HttpContext)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public void Delete(
	string name,
	string path,
	string domain,
	HttpContext context
)

Parameters

name
Type: System.String

The name of the cookie.

path
Type: System.String

The path for the cookie.

domain
Type: System.String

The domain for the cookie

context
Type: System.Web.HttpContext

The HttpContext for the request

Exception Condition
ArgumentNullException

name is null or empty.

.NET Framework
Available since 4.5
Return to top
Show: