See also: readCookie, setCookie

Function used to delete a cookie.

Syntax

JSV_killCookie(name [, path, domain]);

Prototype

n/a

Returns

The JSV_killCookie does not return a value.

Parameters

The JSV_killCookie function uses the following arguments.

Argument Description
name A sequence of characters excluding semicolon, comma and white space. To place restricted characters in the name or value, use an encoding method such as URL-style %XX encoding.
path Specifies the URLs in a domain for which the cookie is valid. Remember that the path must be supplied if it was set with the cookie.
domain Specifies the domain attributes for a valid cookie. Remember that the domain must be supplied if it was set with the cookie.

Remarks

n/a

Dependencies

n/a

Example

The following lines of code

var cookie_Name = "JavaScriptVision";
JSV_killCookie(cookie_Name);
var displayText = JSV_readCookie(cookie_Name) ?
    "You are visiting the JavaScript Vision Library!" : 
    "You have not visited the JavaScript Vision Library at this time." );
document.write( displayText );

produce