Session类增加安全选项

This commit is contained in:
thinkphp
2017-01-06 14:14:21 +08:00
parent 883574dea2
commit d81a52f8d2
2 changed files with 8 additions and 1 deletions

View File

@@ -203,6 +203,8 @@ return [
'type' => '',
// 是否自动开启 SESSION
'auto_start' => true,
'httponly' => true,
'secure' => true,
],
// +----------------------------------------------------------------------