mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
29 lines
1.2 KiB
PHP
29 lines
1.2 KiB
PHP
<?php
|
||
|
||
// +----------------------------------------------------------------------
|
||
// | ThinkAdmin
|
||
// +----------------------------------------------------------------------
|
||
// | 版权所有 2014~2017 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
|
||
// +----------------------------------------------------------------------
|
||
// | 官方网站: http://think.ctolog.com
|
||
// +----------------------------------------------------------------------
|
||
// | 开源协议 ( https://mit-license.org )
|
||
// +----------------------------------------------------------------------
|
||
// | github开源项目:https://github.com/zoujingli/ThinkAdmin
|
||
// +----------------------------------------------------------------------
|
||
|
||
/* 定义Session会话字段名 */
|
||
$session_name = 's' . substr(md5(__DIR__), -8);
|
||
$session_path = env('runtime_path') . 'sess' . DIRECTORY_SEPARATOR;
|
||
file_exists($session_path) || mkdir($session_path, 0755, true);
|
||
|
||
/* 定义Session会话参数 */
|
||
return [
|
||
'id' => '',
|
||
'type' => '',
|
||
'prefix' => 'ta',
|
||
'auto_start' => true,
|
||
'path' => $session_path,
|
||
'name' => $session_name,
|
||
'var_session_id' => $session_name,
|
||
]; |