Maison > Article > développement back-end > COOKIE 保存域问题
COOKIE
setcookie("web","string",time()+3600,"/","127.0.0.1");setcookie("web","string",time()+3600,"/");
两个站点都加上
ini_set('session.cookie_path', '/');
ini_set('session.cookie_domain', '.域名.com');
ini_set('session.cookie_lifetime', '1800');