mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
方便使用session_id
This commit is contained in:
@@ -44,8 +44,6 @@ return [
|
||||
'default_return_type' => 'html',
|
||||
// 默认语言
|
||||
'default_lang' => 'zh-cn',
|
||||
// 是否使用session
|
||||
'use_session' => true,
|
||||
|
||||
// 默认跳转页面对应的模板文件
|
||||
'dispatch_jump_tmpl' => THINK_PATH . 'tpl/dispatch_jump.tpl',
|
||||
@@ -80,8 +78,11 @@ return [
|
||||
'prefix' => '',
|
||||
'expire' => 0,
|
||||
],
|
||||
// 是否使用session
|
||||
'use_session' => true,
|
||||
|
||||
'session' => [
|
||||
'id' => '',
|
||||
'prefix' => 'think',
|
||||
'type' => '',
|
||||
'auto_start' => true,
|
||||
|
||||
@@ -39,7 +39,7 @@ class Session
|
||||
if (isset($config['prefix'])) {
|
||||
self::$prefix = $config['prefix'];
|
||||
}
|
||||
if (isset($config['id'])) {
|
||||
if (isset($config['id']) && !empty($config['id'])) {
|
||||
session_id($config['id']);
|
||||
}
|
||||
if (isset($config['name'])) {
|
||||
|
||||
Reference in New Issue
Block a user