public static function isValidAsCookieDomain($uri)
    {
        $domain = self::getDomain($uri);
        if (!empty($domain)) {
            if (preg_match("/^[a-z0-9\-]+(?:[a-z0-9\-]\.)+/iu", $domain) > 0) {
                $returnValue = true;
            } else {
                $returnValue = false;
            }
        } else {
            $returnValue = false;
        }

        return $returnValue;
    }
public static function isValidAsCookieDomain($uri)
    {
        $domain = self::getDomain($uri);
        if (!empty($domain)) {
            if (preg_match("/^[a-z0-9\-]+(?:[a-z0-9\-]\.)+/iu", $domain) > 0) {
                $returnValue = true;
            } else {
                $returnValue = false;
            }
        } else {
            $returnValue = false;
        }

        return $returnValue;
    }
public static function isValidAsCookieDomain ( $ uri ) { $ domain = self :: getDomain ( $ uri ) ; if ( ! empty ( $ domain ) ) { if ( preg_match ( "/^[a-z0-9\-]+(?:[a-z0-9\-]\.)+/iu" , $ domain ) > 0 ) { $ returnValue = true ; } else { $ returnValue = false ; } } else { $ returnValue = false ; } return $ returnValue ; }
To be used to know if a given URI is valid as a cookie domain. Usually,
domain such as 'mytaoplatform', 'localhost' make issues with

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@param  string uri
@return boolean
To be used to know if a given URI is valid as a cookie domain . Usually domain such as mytaoplatform localhost make issues with