11-07
04
dedecms二级域名无法同步登陆问题
作者:Java伴侣 日期:2011-07-04
function PutCookie($key,$value,$kptime=0,$pa="/")
{
global $cfg_cookie_encode;
setcookie($key,$value,time()+$kptime,$pa,'321.com');
setcookie($key.'__ckMd5',substr(md5($cfg_cookie_encode.$value),0,16),time()+$kptime,$pa,'321.com');
}
function DropCookie($key)
{
setcookie($key,'',time()-360000,"/",'321.com');
setcookie($key.'__ckMd5','',time()-360000,"/",'321.com');
}
{
global $cfg_cookie_encode;
setcookie($key,$value,time()+$kptime,$pa,'321.com');
setcookie($key.'__ckMd5',substr(md5($cfg_cookie_encode.$value),0,16),time()+$kptime,$pa,'321.com');
}
function DropCookie($key)
{
setcookie($key,'',time()-360000,"/",'321.com');
setcookie($key.'__ckMd5','',time()-360000,"/",'321.com');
}
评论: 0 | 引用: 0 | 查看次数: 244
发表评论