diff --git a/src/session/Mysql.php b/src/session/Mysql.php index c5b6b8a..2e6c472 100644 --- a/src/session/Mysql.php +++ b/src/session/Mysql.php @@ -72,17 +72,8 @@ class Mysql implements SessionHandlerInterface $this->config = array_merge($this->config, $config); $this->database = array_merge($this->database, $database); - } - /** - * 打开Session - * @param $save_path - * @param $session_name - * @return bool - * @throws Exception - */ - public function open($save_path, $session_name) - { + // 判断数据库配置是否可用 if(empty($this->database)){ throw new Exception('session error:database empty'); @@ -92,17 +83,6 @@ class Mysql implements SessionHandlerInterface return true; } - /** - * 关闭Session - * @return bool - */ - public function close() - { - $this->gc(ini_get('session.gc_maxlifetime')); - $this->handler = null; - return true; - } - /** * 读取Session * @param string $sessionId