PHP入坑系列(cookie篇)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/gaokcl/article/details/88416589

声明:自己入坑提醒

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);  

猜你喜欢

转载自blog.csdn.net/gaokcl/article/details/88416589