You are here

function nusoapclient::setCookie in Salesforce Suite 5

Same name and namespace in other branches
  1. 5.2 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;
}