public function logout()
    {
        $this->_userData = array();
        $this->_rights = array();
        $this->connected = false;
        Session::get()->delete(App::get()->shortName . $this->sessionKey);
        Cookie::get()->delete(App::get()->shortName . $this->cookieKey);
        Cookie::get()->delete($this->cookieKey);
        session_destroy();
    }
public function logout()
    {
        $this->_userData = array();
        $this->_rights = array();
        $this->connected = false;
        Session::get()->delete(App::get()->shortName . $this->sessionKey);
        Cookie::get()->delete(App::get()->shortName . $this->cookieKey);
        Cookie::get()->delete($this->cookieKey);
        session_destroy();
    }
public function logout ( ) { $ this -> _userData = array ( ) ; $ this -> _rights = array ( ) ; $ this -> connected = false ; Session :: get ( ) -> delete ( App :: get ( ) -> shortName . $ this -> sessionKey ) ; Cookie :: get ( ) -> delete ( App :: get ( ) -> shortName . $ this -> cookieKey ) ; Cookie :: get ( ) -> delete ( $ this -> cookieKey ) ; session_destroy ( ) ; }
Logout for current user. It wil clear session and cookie.
Logout for current user . It wil clear session and cookie .