1
This commit is contained in:
26
config/session.php
Executable file
26
config/session.php
Executable file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkAdmin
|
||||
// +----------------------------------------------------------------------
|
||||
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | 官方网站: http://demo.thinkadmin.top
|
||||
// +----------------------------------------------------------------------
|
||||
// | 开源协议 ( https://mit-license.org )
|
||||
// +----------------------------------------------------------------------
|
||||
// | gitee 代码仓库3:https://gitee.com/zoujingli/ThinkAdmin
|
||||
// | github 代码仓库3:https://github.com/zoujingli/ThinkAdmin
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
/* 定义会话路径 */
|
||||
$_path_ = env('runtime_path') . 'sess' . DIRECTORY_SEPARATOR;
|
||||
file_exists($_path_) || mkdir($_path_, 0755, true);
|
||||
$_name_ = 's' . substr(md5(__DIR__), -8);
|
||||
|
||||
/* 配置会话参数 */
|
||||
return [
|
||||
'prefix' => 'fw',
|
||||
'path' => $_path_,
|
||||
'name' => $_name_,
|
||||
];
|
||||
Reference in New Issue
Block a user