mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-21 14:41:29 +00:00
21 lines
569 B
PHP
21 lines
569 B
PHP
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | Cookie设置
|
|
// +----------------------------------------------------------------------
|
|
return [
|
|
// cookie 保存时间
|
|
'expire' => 0,
|
|
// cookie 保存路径
|
|
'path' => '/',
|
|
// cookie 有效域名
|
|
'domain' => '',
|
|
// cookie 启用安全传输
|
|
'secure' => false,
|
|
// httponly设置
|
|
'httponly' => false,
|
|
// 是否使用 setcookie
|
|
'setcookie' => true,
|
|
// samesite 设置,支持 'strict' 'lax'
|
|
'samesite' => '',
|
|
];
|