public function addCookie ($name, $value)
    {
        if ($this->_sent) {
            throw new CAS_OutOfSequenceException(
                'Request has already been sent cannot '.__METHOD__
            );
        }

        $this->cookies[$name] = $value;
    }
public function addCookie ($name, $value)
    {
        if ($this->_sent) {
            throw new CAS_OutOfSequenceException(
                'Request has already been sent cannot '.__METHOD__
            );
        }

        $this->cookies[$name] = $value;
    }
public function addCookie ( $ name , $ value ) { if ( $ this -> _sent ) { throw new CAS_OutOfSequenceException ( 'Request has already been sent cannot ' . __METHOD__ ) ; } $ this -> cookies [ $ name ] = $ value ; }
Add a cookie to the request.

@param string $name  Name of entry
@param string $value value of entry

@return void
@throws CAS_OutOfSequenceException If called after the Request has been sent.
Add a cookie to the request .