src/sb/JSON/RPC2/Client.php
public function addCookie($cookie = Array())
    {
        foreach ($cookie as $key => $val) {
            if (isset($this->encryption_key)) {
                $val = $this->encryptor->encrypt($val);
            }

            $this->cookies[$key] = $val;
        }
    }
public function addCookie($cookie = Array())
    {
        foreach ($cookie as $key => $val) {
            if (isset($this->encryption_key)) {
                $val = $this->encryptor->encrypt($val);
            }

            $this->cookies[$key] = $val;
        }
    }
public function addCookie ( $ cookie = Array ( ) ) { foreach ( $ cookie as $ key => $ val ) { if ( isset ( $ this -> encryption_key ) ) { $ val = $ this -> encryptor -> encrypt ( $ val ) ; } $ this -> cookies [ $ key ] = $ val ; } }
Adds a cookie to send to the server
@param $cookie Array('key' => 'val');
Adds a cookie to send to the server