AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

CookieHelper..::..RemoveCookie Method (HttpContext, String, String, String)

Removes a single value from a cookie or the whole cookie (if keyName is null)

Namespace:  AdvantageCMS.Core.Utils
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static void RemoveCookie(
	HttpContext context,
	string cookieName,
	string keyName,
	string domain
)

Parameters

context
Type: HttpContext
The context.
cookieName
Type: String
Cookie name to remove (or to remove a KeyValue in)
keyName
Type: String
the name of the key value to remove. If NULL or EMPTY, the whole cookie will be removed.
domain
Type: String
cookie domain (required if you need to delete a .domain.it type of cookie)