public static function logout() { $CI =& get_instance(); self::$user = NULL; $CI->session->unset_userdata('usuario_id'); }
public static function logout() { setcookie('redirectlogin', '', time()-3600); $CI = & get_instance(); self::$user = NULL; $CI->session->unset_userdata('usuario_id'); }