function soapclient::setCookie in Salesforce Suite 5
Same name and namespace in other branches
- 5.2 includes/nusoap.orig.php \soapclient::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.orig.php, line 7116
Class
- soapclient
- soapclient 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;
}