Delete a Cookie





13
Date Submitted Sun. Oct. 9th, 2005 8:13 PM
Revision 1 of 1
Coder mattrmiller
Tags Cookie | Delete | JavaScript
Comments 0 comments
Delete a Cookie
function DeleteCookie(strName)
{
        // Validate
        document.cookie = strName + "=" + "; expires = Thu, 01-Jan-70 00:00:01 GMT";
}

Matthew R. Miller

www.bluecreststudios.com
=================
Matthew R. Miller

http://bluecreststudios.com
http://www.codeandcoffee.com

Comments

There are currently no comments for this snippet.

Voting