public function addCookie($name, $value, $path = null, $domain = null, $secure = null, $expiry = null)
{
$cookie = new Cookie($name, $value, $path, $domain, $secure, $expiry);
$params = array('cookie' => $cookie->getArray());
$command = new Commands\Command($this->_driver, 'add_cookie', $params);
$command->execute();
}