function gen_session_key($session_id) { static $ip = ''; if ($ip == '') { $ip = substr($this->_ip, 0, strrpos($this->_ip, '.')); } return sprintf('%08x', crc32(!empty($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] . ROOT_PATH . $ip . $session_id : ROOT_PATH . $ip . $session_id)); }替换成
function gen_session_key($session_id) { static $ip = ''; if ($ip == '') { $ip = substr($this->_ip, 0, strrpos($this->_ip, '.')); } return sprintf('%08x', crc32(ROOT_PATH . $ip . $session_id)); }如果还是会退出
替换成
function gen_session_key($session_id) { static $ip = ''; // if ($ip == '') // { // $ip = substr($this->_ip, 0, strrpos($this->_ip, '.')); // } return sprintf('%08x', crc32(ROOT_PATH . $ip . $session_id)); }