diff --git a/classes/session/SessionHandler.class.php b/classes/session/SessionHandler.class.php deleted file mode 100644 index 792c23ff3..000000000 --- a/classes/session/SessionHandler.class.php +++ /dev/null @@ -1,56 +0,0 @@ -session_path, $session_key); - return $session_file; - } - - function read($session_key) { - $filename = $this->getSessionFile($session_key); - if(!file_exists($filename)) return ''; - $buff = FileHandler::readFile($filename); - return substr($buff, strlen('')); - } - - function write($session_key, $val) { - if(!$val) return true; - - $filename = $this->getSessionFile($session_key); - - $buff = ''.$val; - return FileHandler::writeFile($filename, $buff); - } - - function destroy($session_key) { - $filename = $this->getSessionFile($session_key); - @unlink( $filename); - return true; - } - - function gc($maxlifetime) { - foreach (glob($this->session_path.'zbxe_session_*.php') as $filename) { - if (filemtime($filename) + $this->lifetime < time()) @unlink($filename); - } - return true; - } - } -?> diff --git a/config/config.inc.php b/config/config.inc.php index 1fecccb21..75bc8a904 100644 --- a/config/config.inc.php +++ b/config/config.inc.php @@ -53,16 +53,6 @@ /** * @brief 세션 설정 **/ - /* - $oSessionHandler = new SessionHandler(); - $aa = session_set_save_handler( - array(&$oSessionHandler,"open"), - array(&$oSessionHandler,"close"), - array(&$oSessionHandler,"read"), - array(&$oSessionHandler,"write"), - array(&$oSessionHandler,"destroy"), - array(&$oSessionHandler,"gc")); - */ session_cache_limiter('no-cache, must-revalidate'); session_start(); ?>