From d80701367761f6060b8ee5f4edf3cc3876a0992f Mon Sep 17 00:00:00 2001 From: mokotiyo Date: Mon, 6 Aug 2018 14:40:13 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=BB=E3=83=83=E3=82=B7=E3=83=A7=E3=83=B3?= =?UTF-8?q?=20setGcMaxLifeTime=E3=82=92start=E3=81=AE=E5=89=8D=E3=81=AB?= =?UTF-8?q?=E7=A7=BB=E5=8B=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BEAR/Session.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/BEAR/Session.php b/BEAR/Session.php index 834a6de2..dfa68fe9 100644 --- a/BEAR/Session.php +++ b/BEAR/Session.php @@ -178,6 +178,11 @@ private function _start() $hasStarted = true; $this->_setAdapter($this->_config); + // GCが働くまでの時間 + if (isset($this->_config['gc_max_lifetime']) && $this->_config['gc_max_lifetime']) { + HTTP_Session2::setGcMaxLifeTime($this->_config['gc_max_lifetime']); + } + // セッションスタート $this->_httpSession2Start(); @@ -214,10 +219,7 @@ private function _start() } } } - // GCが働くまでの時間 - if (isset($this->_config['gc_max_lifetime']) && $this->_config['gc_max_lifetime']) { - HTTP_Session2::setGcMaxLifeTime($this->_config['gc_max_lifetime']); - } + // セッションスタート $this->_log->log( 'Session Start',