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();
    }