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)); }如果還是會(huì)退出
替換成
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)); }