Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : SOAP Functions : SoapClient->__setCookie()

SoapClient->__setCookie()

Sets the cookie that will be sent with the SOAP request ()

SoapClient{
void__setCookie(stringname,
stringvalue);

}

Defines a cookie to be sent along with the SOAP requests.

Note:

Calling this method will affect all following calls to SoapClient methods.

Parameters

name

The name of the cookie.

value

The value of the cookie. If not specified, the cookie will be deleted.

Return Values

No value is returned.

Related Examples ( Source code ) » soap_soapclient_setcookie






Code Examples / Notes » soap_soapclient_setcookie

lukasz

On the server side you can access the cookie via $_COOKIE['cookie_name'].
Also remember that since HTTP is a stateless protocol, you have to send the cookie with every single SOAP call in order for it to be visible at server site.
It seems obvious but might save one a lot of time.


Change Language


Follow Navioo On Twitter
is_soap_fault
SoapClient->__call()
SoapClient->__construct()
SoapClient->__doRequest()
SoapClient->__getFunctions()
SoapClient->__getLastRequest()
SoapClient->__getLastRequestHeaders()
SoapClient->__getLastResponse()
SoapClient->__getLastResponseHeaders()
SoapClient->__getTypes()
SoapClient->__setCookie()
SoapClient->__soapCall()
SoapFault->__construct()
SoapHeader->__construct()
SoapParam->__construct()
SoapServer->addFunction()
SoapServer->__construct()
SoapServer->fault()
SoapServer->getFunctions()
SoapServer->handle()
SoapServer->setClass()
SoapServer->setPersistence()
SoapVar->__construct()
use_soap_error_handler
eXTReMe Tracker