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