cookie.php 1.1 KB

12345678910111213141516171819202122232425262728
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. // +----------------------------------------------------------------------
  12. // | Cookie设置
  13. // +----------------------------------------------------------------------
  14. return [
  15. // cookie 保存时间
  16. 'expire' => 0,
  17. // cookie 保存路径
  18. 'path' => '/',
  19. // cookie 有效域名
  20. 'domain' => '',
  21. // cookie 启用安全传输
  22. 'secure' => false,
  23. // httponly设置
  24. 'httponly' => false,
  25. // 是否使用 setcookie
  26. 'setcookie' => true,
  27. ];