public function logout()
    {
        $this->di->get('session')->set("user", null);
        $this->di->get("response")->redirect("user/login");
    }
public function logout()
    {
        $this->di->get('session')->set("user", null);
        $this->di->get("response")->redirect("user/login");
    }
public function logout ( ) { $ this -> di -> get ( 'session' ) -> set ( "user" , null ) ; $ this -> di -> get ( "response" ) -> redirect ( "user/login" ) ; }
Logout user by setting "user" == null in session.

@return void
Logout user by setting user == null in session .