function isGuest() { if (!$this->CI->session->userdata($this->_login_session_key)) { //try to auto login first $this->CI->load->library('ezlogin'); return !$this->CI->ezlogin->auto_login(); } return FALSE; }