Delete a Cookie Using Javascript

by Vinoth 2010-02-02 16:50:36

Below Code is used to delete Cookie using javascript

function Delete_Cookie( name, path, domain ) {
if ( Get_Cookie( name ) ) document.cookie = name + "=" +
( ( path ) ? ";path=" + path : "") +
( ( domain ) ? ";domain=" + domain : "" ) +
";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}

Tagged in:

887
like
0
dislike
0
mail
flag

You must LOGIN to add comments