Posted on 2010/4/1 21:44
Posted by
hliang in
PHP, 本站原创
引用地址:
注意: 该地址仅在今日23:59:59之前有效
var expires = new Date();
expires.setTime(expires.getTime() + 1000 * 7200); //设置COOKIE超时时间,数字为毫秒
document.cookie = 'name=cookie-value;domain=.ixcv.com;path=/;expires=' + expires.toGMTString(); //设置COOKIE,名字为name,值为cookie-value