javascript如何清除登陆用户的COOKIES和临时文件.
javascript如何清除登陆用户的COOKIES和临时文件.
谢谢
------解决方案--------------------try:
javascript如何清除登陆用户的COOKIES
document.cookie = " "
or
function ClearCookie()
{
var strCookie = document.cookie;
var arrCookie = strCookie.split( "; ");
var i;
var expires = new Date();
expires.setDate(expires.getDate() - 1);
for(i=0; i <arrCookie.length; i++)
{
document.cookie = arrCookie[i].split( '= ')[0]+ '=null;expires= ' + expires.toGMTString();
}
// alert(document.cookie);
}