PHP入坑系列(cookie篇)
声明:自己入坑提醒
1,CI框架
(1) $this->input->set_cookie();注意 path domain 作用域 ,使用 (2)(3)要自己设置
http://www.php.net/manual/zh/function.setcookie.php (2) setcookie("UID", $id,0,'/','xxxx'); // 0 关闭浏览器失效,/ 整个网站 www.xxxx.com/ xxxx.com / mail.xxxx.com(3) set_cookie("username",$user_info['username'],60);