function get_cookie($name) { $this->ci->load->library("IhCookie"); $cookie = $this->cookieConfig; IhCookie::setPrefix($cookie["prefix"]); if (IhCookie::is_set($name)) { return IhCookie::get($name); } else { return null; } }