source/Core/UtilsServer.php
protected function _mustSaveToSession()
    {
        if ($this->_blSaveToSession === null) {
            $this->_blSaveToSession = false;

            $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
            if ($sSslUrl = $myConfig->getSslShopUrl()) {
                $sUrl = $myConfig->getShopUrl();

                $sHost = parse_url($sUrl, PHP_URL_HOST);
                $sSslHost = parse_url($sSslUrl, PHP_URL_HOST);

                // testing if domains matches..
                if ($sHost != $sSslHost) {
                    $oUtils = \OxidEsales\Eshop\Core\Registry::getUtils();
                    $this->_blSaveToSession = $oUtils->extractDomain($sHost) != $oUtils->extractDomain($sSslHost);
                }
            }
        }

        return $this->_blSaveToSession;
    }
protected function _mustSaveToSession()
    {
        if ($this->_blSaveToSession === null) {
            $this->_blSaveToSession = false;

            $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
            if ($sSslUrl = $myConfig->getSslShopUrl()) {
                $sUrl = $myConfig->getShopUrl();

                $sHost = parse_url($sUrl, PHP_URL_HOST);
                $sSslHost = parse_url($sSslUrl, PHP_URL_HOST);

                // testing if domains matches..
                if ($sHost != $sSslHost) {
                    $oUtils = \OxidEsales\Eshop\Core\Registry::getUtils();
                    $this->_blSaveToSession = $oUtils->extractDomain($sHost) != $oUtils->extractDomain($sSslHost);
                }
            }
        }

        return $this->_blSaveToSession;
    }
protected function _mustSaveToSession ( ) { if ( $ this -> _blSaveToSession === null ) { $ this -> _blSaveToSession = false ; $ myConfig = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; if ( $ sSslUrl = $ myConfig -> getSslShopUrl ( ) ) { $ sUrl = $ myConfig -> getShopUrl ( ) ; $ sHost = parse_url ( $ sUrl , PHP_URL_HOST ) ; $ sSslHost = parse_url ( $ sSslUrl , PHP_URL_HOST ) ; // testing if domains matches.. if ( $ sHost != $ sSslHost ) { $ oUtils = \ OxidEsales \ Eshop \ Core \ Registry :: getUtils ( ) ; $ this -> _blSaveToSession = $ oUtils -> extractDomain ( $ sHost ) != $ oUtils -> extractDomain ( $ sSslHost ) ; } } } return $ this -> _blSaveToSession ; }
Checks if cookie must be saved to session in order to transfer it to different domain

@return bool
Checks if cookie must be saved to session in order to transfer it to different domain