JavaScript Removing cookies

Download JavaScript for free

Example

var expiry = new Date();
expiry.setTime(expiry.getTime() - 3600);
document.cookie = name + "=; expires=" + expiry.toGMTString() + "; path=/"

This will remove the cookie with a given name.

Test if cookies are enabled