添加cookie跨域代码

This commit is contained in:
Li Jianxuan 2014-06-12 01:26:33 +00:00
parent e8cec0b6e6
commit f161415500
1 changed files with 1 additions and 0 deletions

View File

@ -110,6 +110,7 @@ class Member
setcookie('user',$uname,time()+$time,'/');
setcookie('scr',$scrString,time()+$time,'/');
}else{
ini_set('session.cookie_domain', $this->rootdomain);
setcookie('user',$uname,time()+$time,'/',$this->rootdomain);
setcookie('scr',$scrString,time()+$time,'/',$this->rootdomain);
}