ss 的 cookie 设置 我查了一下,是不是在 include\js\common.js 这个文件,具体代码是:
/*Cookie操作*/
function CreatCookie(sName,sValue){
var expires = function(){ //Cookie保留时间
var mydate = new Date();
mydate.setTime(mydate.getTime + 3*30*24*60*60*1000);
return mydate.toGMTString();
}
document.cookie = sName + "=" + sValue + ";expires=" + expires;
}
function GetCookieVal(offset) {//获得Cookie解码后的值
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie(sName) {//获得Cookie
var arg = sName + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen)
{
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return GetCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function DelCookie(sName,sValue){ //删除Cookie
document.cookie = sName + "=" + escape(sValue) + ";expires=Fri, 31 Dec 1999 23:59:59 GMT;";
}
其中这段 mydate.setTime(mydate.getTime + 3*30*24*60*60*1000); 是保留时间设置吗?
请问如何更改,谢谢!如果把保留时间设置为0 ,是不是关闭浏览器就自动退出呢! |