添加cookie跨域代码
This commit is contained in:
parent
e8cec0b6e6
commit
f161415500
|
@ -110,6 +110,7 @@ class Member
|
||||||
setcookie('user',$uname,time()+$time,'/');
|
setcookie('user',$uname,time()+$time,'/');
|
||||||
setcookie('scr',$scrString,time()+$time,'/');
|
setcookie('scr',$scrString,time()+$time,'/');
|
||||||
}else{
|
}else{
|
||||||
|
ini_set('session.cookie_domain', $this->rootdomain);
|
||||||
setcookie('user',$uname,time()+$time,'/',$this->rootdomain);
|
setcookie('user',$uname,time()+$time,'/',$this->rootdomain);
|
||||||
setcookie('scr',$scrString,time()+$time,'/',$this->rootdomain);
|
setcookie('scr',$scrString,time()+$time,'/',$this->rootdomain);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue