(PHP 5 >= 5.1.2)
SoapServer->setPersistence() — Sets persistence mode of SoapServer
This function allows saving data between requests in a PHP session. It works only with a server that exports functions from a class with SoapServer->setClass().
One of the SOAP_PERSISTENCE_XXX constants.
No value is returned.
Example#1 Some examples
<?php
$server->setPersistence(SOAP_PERSISTENCE_SESSION);
$server->setPersistence(SOAP_PERSISTENCE_REQUEST);
?>
Note: The persistence SOAP_PERSISTENCE_SESSION makes persistent only object of given class, but not the class static data. You may use $this->bar instead of self::$bar.