From 704cc32a57fc10e56d863ede89cf2841bc67f70f Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 20 Jun 2025 10:47:49 +0800 Subject: [PATCH] * [perf story #75382] Adjust for check session for install. --- module/install/control.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module/install/control.php b/module/install/control.php index 187111e537..514b1ee155 100644 --- a/module/install/control.php +++ b/module/install/control.php @@ -102,6 +102,7 @@ class install extends control $checkSession = ini_get('session.save_handler') == 'files'; $this->view->sessionResult = 'ok'; + $this->view->sessionInfo = array('exists' => true, 'writable' => true); $this->view->checkSession = $checkSession; if($checkSession) { @@ -261,9 +262,9 @@ class install extends control /* 当session保存路径为空时设置session保存路径。*/ /* Set the session save path when the session save path is null. */ - $customSession = false; - $checkSession = ini_get('session.save_handler') == 'files'; - if($checkSession && !session_save_path()) + $sessionHandler = ini_get('session.save_handler'); + $customSession = $sessionHandler == 'user'; + if($sessionHandler == 'files' && !session_save_path()) { /* 重新启动session,因为上次启动session时保存路径为null。*/ /* Restart the session because the session save path is null when start the session last time. */