Can anyone tell me why this wouldn't work to delete all cookies? I displays them all fine....
thanks!
function delete_all_cookies(){
//reading and splitting the whole cookie
//reading and splitting the whole cookie
var whole_cookie = unescape(document.cookie);
var each_cookie = whole_cookie.split(";");
for (i = 0; i < each_cookie.length; i++){
var cookie_split = each_cookie.split("=");
document.cookie = cookie_split[1] + "=stub;expires=" + kill_date.toGMTString();
}//ends FOR
}//ends process_cookie() function
thanks!
function delete_all_cookies(){
//reading and splitting the whole cookie
//reading and splitting the whole cookie
var whole_cookie = unescape(document.cookie);
var each_cookie = whole_cookie.split(";");
for (i = 0; i < each_cookie.length; i++){
var cookie_split = each_cookie.split("=");
document.cookie = cookie_split[1] + "=stub;expires=" + kill_date.toGMTString();
}//ends FOR
}//ends process_cookie() function