lib/Cookie.php
public function setDomain($domain)
    {
        if (mb_strpos($domain, ':') !== false) {
            throw new InvalidArgumentException(sprintf('Cookie domain "%s" should not contain a port', $domain));
        }

        $this->cookie['domain'] = $domain;
    }
public function setDomain($domain)
    {
        if (mb_strpos($domain, ':') !== false) {
            throw new InvalidArgumentException(sprintf('Cookie domain "%s" should not contain a port', $domain));
        }

        $this->cookie['domain'] = $domain;
    }
public function setDomain ( $ domain ) { if ( mb_strpos ( $ domain , ':' ) !== false ) { throw new InvalidArgumentException ( sprintf ( 'Cookie domain "%s" should not contain a port' , $ domain ) ) ; } $ this -> cookie [ 'domain' ] = $ domain ; }
The domain the cookie is visible to. Defaults to the current browsing context's document's URL domain if omitted.

@param string $domain
The domain the cookie is visible to . Defaults to the current browsing context s document s URL domain if omitted .