public function logout()
 {
     global $SESSION;
     WebService::logout($this->id);
     unset($SESSION->{'repositoryClient' . $this->id});
     // empty the object in the session
 }