COOKIE配置
config.php
'COOKIE' => [
//配置项
],
| 配置项 | 默认值 | 类型 | 说明 |
|---|---|---|---|
| prefix | string | cookie前缀 | |
| lifetime | 0 | int | cookie有效期(秒),0=关闭浏览器就失效 |
| path | / | string | cookie有效路径 |
| domain | string | cookie有效域名 | |
| secure | false | bool | cookie是否仅通过HTTPS传输 |
| httponly | true | bool | cookie是否无法通过JavaScript等脚本访问 |