Example #1
0
 /**
  * logout
  *
  * @param void
  * @return void
  */
 public static function logout()
 {
     Load::lib('auth');
     Load::lib('session');
     Session::set(SESSION_KEY, false);
     Auth::destroy_identity();
 }
Example #2
0
 function cerrar()
 {
     Auth::destroy_identity();
     Session::delete("usuario_id");
     Session::delete("usuario_nombrecompleto");
     Router::redirect("login/index");
 }
 public function logout()
 {
     if (Auth::is_valid()) {
         Auth::destroy_identity();
         Flash::valid("Sesión finalizada");
     }
     Router::redirect("/");
 }
 /**
  * Metodo para cerrar la sesion del usuario actual
  */
 public function salir()
 {
     if (!Auth::is_valid()) {
         Flash::info("Identifícate nuevamente.");
     } else {
         Auth::destroy_identity();
         Session::delete('ip');
         Session::delete("usuario");
         Session::delete('grupo');
         Session::delete('nivel');
         Flash::valid("La sesión se ha cerrado correctamente.");
     }
     //Cambio la vista
     View::setPath('dc-admin/usuario');
     View::select('entrar', 'login');
 }
 public function logout()
 {
     Auth::destroy_identity();
     Router::redirect("index/login");
 }
 public function logout()
 {
     Auth::destroy_identity();
     Router::redirect("auth/bye");
 }
 public function logout()
 {
     Auth::destroy_identity();
     return $this->redirect("");
 }
Example #8
0
 public function logout()
 {
     Auth::destroy_identity();
     return true;
 }
 public function logout()
 {
     Auth::destroy_identity();
     $this->redirect('');
 }
 public function salir()
 {
     //Load::lib('auth');
     Auth::destroy_identity();
     Router::redirect("usuario/ingresar");
 }