Prado\Security\TAuthManager::updateSessionUser PHP Method

updateSessionUser() public method

Updates the user data stored in session.
public updateSessionUser ( $user )
    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());
            }
        }
    }