cookies.php
public function setCookie($name, $value, $host = false, $path = '/', $expiry = false)
    {
        $cookie = new SimpleCookie($name, $value, $path, $expiry);
        if ($host) {
            $cookie->setHost($host);
        }
        $this->cookies[$this->findFirstMatch($cookie)] = $cookie;
    }
public function setCookie($name, $value, $host = false, $path = '/', $expiry = false)
    {
        $cookie = new SimpleCookie($name, $value, $path, $expiry);
        if ($host) {
            $cookie->setHost($host);
        }
        $this->cookies[$this->findFirstMatch($cookie)] = $cookie;
    }
public function setCookie ( $ name , $ value , $ host = false , $ path = '/' , $ expiry = false ) { $ cookie = new SimpleCookie ( $ name , $ value , $ path , $ expiry ) ; if ( $ host ) { $ cookie -> setHost ( $ host ) ; } $ this -> cookies [ $ this -> findFirstMatch ( $ cookie ) ] = $ cookie ; }
Sets an additional cookie. If a cookie has the same name and path it is replaced.

@param string $name   Cookie key.
@param string $value  Value of cookie.
@param string $host   Host upon which the cookie is valid.
@param string $path   Cookie path if not host wide.
@param string $expiry Expiry date.
Sets an additional cookie . If a cookie has the same name and path it is replaced .