声明:自己入坑提醒

1,CI框架   

(1) $this->input->set_cookie();注意  path   domain  作用域  ,使用 (2)(3)要自己设置

PHP入坑系列(cookie篇)

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

 

相关文章:

  • 2021-11-04
  • 2021-05-29
  • 2021-12-24
  • 2021-10-29
  • 2021-05-21
  • 2021-09-30
猜你喜欢
  • 2021-11-19
  • 2022-01-14
  • 2022-12-23
  • 2021-10-10
  • 2022-03-06
  • 2021-12-02
  • 2022-12-23
相关资源
相似解决方案