source/Core/UtilsServer.php
protected function _getCookieDomain($sDomain)
    {
        $sDomain = $sDomain ? $sDomain : "";

        // on special cases, like separate domain for SSL, cookies must be defined on domain specific path
        // please have a look at
        if (!$sDomain) {
            if ($aCookieDomains = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('aCookieDomains')) {
                // in case user wants to have shop specific setup
                $sShopId = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId();
                $sDomain = isset($aCookieDomains[$sShopId]) ? $aCookieDomains[$sShopId] : $sDomain;
            }
        }

        return $sDomain;
    }
protected function _getCookieDomain($sDomain)
    {
        $sDomain = $sDomain ? $sDomain : "";

        // on special cases, like separate domain for SSL, cookies must be defined on domain specific path
        // please have a look at
        if (!$sDomain) {
            if ($aCookieDomains = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('aCookieDomains')) {
                // in case user wants to have shop specific setup
                $sShopId = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId();
                $sDomain = isset($aCookieDomains[$sShopId]) ? $aCookieDomains[$sShopId] : $sDomain;
            }
        }

        return $sDomain;
    }
protected function _getCookieDomain ( $ sDomain ) { $ sDomain = $ sDomain ? $ sDomain : "" ; // on special cases, like separate domain for SSL, cookies must be defined on domain specific path // please have a look at if ( ! $ sDomain ) { if ( $ aCookieDomains = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'aCookieDomains' ) ) { // in case user wants to have shop specific setup $ sShopId = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getShopId ( ) ; $ sDomain = isset ( $ aCookieDomains [ $ sShopId ] ) ? $ aCookieDomains [ $ sShopId ] : $ sDomain ; } } return $ sDomain ; }
Returns domain that cookie available. If user did not set domain, or set it to null, according to php
documentation empty string will be returned, marking to skip argument. Additionally domain can be defined
in config.inc.php file as "sCookieDomain" param. Please check cookie documentation for more details about
current parameter

@param string $sDomain the domain that the cookie is available.

@return string
Returns domain that cookie available . If user did not set domain or set it to null according to php documentation empty string will be returned marking to skip argument . Additionally domain can be defined in config . inc . php file as sCookieDomain param . Please check cookie documentation for more details about current parameter