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