Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<SoapServer->setClass()SoapVar->__construct()>
Last updated: Tue, 19 Sep 2006

SoapServer->setPersistence()

(no version information, might be only in CVS)

SoapServer->setPersistence() --  Sets persistence mode of SoapServer

Description

class SoapServer {

void setPersistence ( int mode )

}

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().

Parameters

mode

One of the SOAP_PERSISTENCE_XXX constants.

Return Values

No value is returned.

Examples

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.




<SoapServer->setClass()SoapVar->__construct()>
Last updated: Tue, 19 Sep 2006