public function logout() { $this->_db->delete('users_session', ['user_id', '=', $this->data()->id]); Session::delete($this->_sessionName); Cookie::delete($this->_cookieName); }