function nusoapclient::setCookie in Salesforce Suite 5.2
Same name and namespace in other branches
- 5 includes/nusoap.php \nusoapclient::setCookie()
* adds a new Cookie into $this->cookies array * *
Parameters
string $name Cookie Name: * @param string $value Cookie Value * @return if cookie-set was successful returns true, else false * @access public
File
- includes/
nusoap.php, line 7155
Class
- nusoapclient
- nusoapclient higher level class for easy usage.
Code
function setCookie($name, $value) {
if (strlen($name) == 0) {
return false;
}
$this->cookies[] = array(
'name' => $name,
'value' => $value,
);
return true;
}