public function Logout()
    {
        $oBasket = TShopBasket::GetInstance();
        if (is_array($oBasket->aCompletedOrderStepList)) {
            reset($oBasket->aCompletedOrderStepList);
            foreach ($oBasket->aCompletedOrderStepList as $sStepName => $bValue) {
                $oBasket->aCompletedOrderStepList[$sStepName] = false;
            }
        }
        parent::Logout();

        if (SHOP_CLEAR_BASKET_CONTENTS_ON_LOGOUT) {
            if (class_exists('TShopBasket')) {
                $oBasket = TShopBasket::GetInstance();
                $oBasket->ClearBasket();
            }
        }
    }