public function addCookie($name, $value, $path, $domain, $httpOnly = true, $secure = false, $expires = null)
    {
        $filter = function ($value) {
            return !is_null($value);
        };

        $this->cookies['add'][] = array_filter(array(
            'name'     => $name,
            'value'    => $value,
            'path'     => $path,
            'domain'   => $domain,
            'httponly' => $httpOnly,
            'secure'   => $secure,
            'expires'  => $expires
        ), $filter);

        return $this;
    }
public function addCookie($name, $value, $path, $domain, $httpOnly = true, $secure = false, $expires = null)
    {
        $filter = function ($value) {
            return !is_null($value);
        };

        $this->cookies['add'][] = array_filter(array(
            'name'     => $name,
            'value'    => $value,
            'path'     => $path,
            'domain'   => $domain,
            'httponly' => $httpOnly,
            'secure'   => $secure,
            'expires'  => $expires
        ), $filter);

        return $this;
    }
public function addCookie ( $ name , $ value , $ path , $ domain , $ httpOnly = true , $ secure = false , $ expires = null ) { $ filter = function ( $ value ) { return ! is_null ( $ value ) ; } ; $ this -> cookies [ 'add' ] [ ] = array_filter ( array ( 'name' => $ name , 'value' => $ value , 'path' => $ path , 'domain' => $ domain , 'httponly' => $ httpOnly , 'secure' => $ secure , 'expires' => $ expires ) , $ filter ) ; return $ this ; }
Add cookie.

@access public
@param  string                                 $name
@param  mixed                                  $value
@param  string                                 $path
@param  string                                 $domain
@param  bool                                   $httpOnly (default: true)
@param  bool                                   $secure   (default: false)
@param  int                                    $expires  (default: null)
@return \JonnyW\PhantomJs\Http\AbstractRequest
Add cookie .