public static function GetUserMode()
    {
        $umode = 'register';
        if (array_key_exists('tw_order_umode', $_SESSION)) {
            $umode = $_SESSION['tw_order_umode'];
        }
        if ('user' != $umode) {
            // check if the user is signed in... if so, we change the mode to user
            $oUser = self::getExtranetUserProvider()->getActiveUser();
            if ($oUser && $oUser->IsLoggedIn()) {
                $umode = 'user';
                TShopStepUserDataV2::SetUserMode($umode);
            }
        }

        return $umode;
    }