public function sendCookies($override = false)
    {
        if (headers_sent() && !$override) {
            return $this;
        }

        // Iterate through our Cookies data collection and set each cookie natively
        foreach ($this->cookies as $cookie) {
            // Use the built-in PHP "setcookie" function
            setcookie(
                $cookie->getName(),
                $cookie->getValue(),
                $cookie->getExpire(),
                $cookie->getPath(),
                $cookie->getDomain(),
                $cookie->getSecure(),
                $cookie->getHttpOnly()
            );
        }

        return $this;
    }
public function sendCookies($override = false)
    {
        if (headers_sent() && !$override) {
            return $this;
        }

        // Iterate through our Cookies data collection and set each cookie natively
        foreach ($this->cookies as $cookie) {
            // Use the built-in PHP "setcookie" function
            setcookie(
                $cookie->getName(),
                $cookie->getValue(),
                $cookie->getExpire(),
                $cookie->getPath(),
                $cookie->getDomain(),
                $cookie->getSecure(),
                $cookie->getHttpOnly()
            );
        }

        return $this;
    }
public function sendCookies ( $ override = false ) { if ( headers_sent ( ) && ! $ override ) { return $ this ; } // Iterate through our Cookies data collection and set each cookie natively foreach ( $ this -> cookies as $ cookie ) { // Use the built-in PHP "setcookie" function setcookie ( $ cookie -> getName ( ) , $ cookie -> getValue ( ) , $ cookie -> getExpire ( ) , $ cookie -> getPath ( ) , $ cookie -> getDomain ( ) , $ cookie -> getSecure ( ) , $ cookie -> getHttpOnly ( ) ) ; } return $ this ; }
Send our HTTP response cookies

@param boolean $override     Whether or not to override the check if headers have already been sent
@return AbstractResponse
Send our HTTP response cookies