public function setCookie($name, $val, array $params = [])
    {
        parent::setCookie($name, $this->client->hashCookieData($name, $val), $params);
    }
public function setCookie($name, $val, array $params = [])
    {
        parent::setCookie($name, $this->client->hashCookieData($name, $val), $params);
    }
public function setCookie ( $ name , $ val , array $ params = [ ] ) { parent :: setCookie ( $ name , $ this -> client -> hashCookieData ( $ name , $ val ) , $ params ) ; }
Sets a cookie and, if validation is enabled, signs it.
@param string $name The name of the cookie
@param string $value The value of the cookie
@param array $params Additional cookie params like `domain`, `path`, `expires` and `secure`.
Sets a cookie and if validation is enabled signs it .