/** * logged_in * * @return bool * @author Mathew **/ public function logged_in() { $identity = $this->ci->config->item('identity', 'ion_auth'); return (bool) $this->ci->session->userdata($identity); }