0
0

cookie.php 1.1 KB

123456789101112131415161718192021222324252627282930
  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. 'prefix' => '',
  17. // cookie 保存时间
  18. 'expire' => 0,
  19. // cookie 保存路径
  20. 'path' => '/',
  21. // cookie 有效域名
  22. 'domain' => '',
  23. // cookie 启用安全传输
  24. 'secure' => false,
  25. // httponly设置
  26. 'httponly' => '',
  27. // 是否使用 setcookie
  28. 'setcookie' => true,
  29. ];