From 1a68e5ac28f645e89ca8aaf3ec7813a8f372700a Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Wed, 26 Oct 2022 09:56:45 +0800 Subject: [PATCH] * Modify session error. --- framework/base/router.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/base/router.class.php b/framework/base/router.class.php index 84df7b4d85..5dfb548cc3 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -1015,7 +1015,7 @@ class baseRouter session_name($sessionName); session_set_cookie_params(0, $this->config->webRoot, '', $this->config->cookieSecure, true); if($this->config->customSession) session_save_path($this->getTmpRoot() . 'session'); - session_start(); + if(!session_id()) session_start(); $this->sessionID = isset($ztSessionHandler) ? $ztSessionHandler->getSessionID() : session_id();