News:

GinGly.com - Used by 85,000 Members - SMS Backed up 7,35,000 - Contacts Stored  28,850 !!

Main Menu

Program for deleting Specified Cookie in Java

Started by sajiv, Aug 16, 2008, 07:46 PM

Previous topic - Next topic

sajiv


<script type="text/javascript">

function deleteCookie(name, path, domain)
{
if (getCookie(name))
{
document.cookie = name + "=" +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
"; expires=Thu, 03-nov-06 02:00:00 GMT";
}
}

</script>

name name of the cookie
[path] path of the cookie (must be same as path used to create cookie)
[domain] domain of the cookie (must be same as domain used to create cookie)


:acumen