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

Definition

When overridden in a derived class, deletes the cookie associated with the specified request that has the specified name, domain, and path.

protected:
 abstract void DeleteCore(System::String ^ name, System::String ^ path, System::String ^ domain, System::Web::HttpContext ^ context);
protected abstract void DeleteCore (string name, string path, string domain, System.Web.HttpContext context);
abstract member DeleteCore : string * string * string * System.Web.HttpContext -> unit
Protected MustOverride Sub DeleteCore (name As String, path As String, domain As String, context As HttpContext)

Parameters

name
String

The name of the cookie.

path
String

The path for the cookie.

domain
String

The domain for the cookie.

context
HttpContext

The HttpContext for the request.

Remarks

Called from the overloaded Delete methods to do the actual work of deleting the cookie. The Delete methods will ensure that name and path are non-empty strings.

Notes to Implementers

You must override this method. The implementation is entirely up to the developer. In the typical case, implementations replace the specified cookie in the Cookies collection, with a cookie that has null data and an expiration time that is set earlier than the current time; however, this is not a requirement.

Applies to