public function updateSessionUser($user)
{
if (!$user->getIsGuest()) {
if (($session = $this->getSession()) === null) {
throw new TConfigurationException('authmanager_session_required');
} else {
$session->add($this->getUserKey(), $user->saveToString());
}
}
}