Warning: file_put_contents(): Only -1 of 69 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
SoapServer->setClass() SoapVar->__construct() SOAP PHP Manual SoapServer->setPersistence() (PHP 5 >= 5.1.2) SoapServer->setPersistence() — Sets persistence mode of SoapServer Description So...
Forum und email

SoapServer->setPersistence()

(PHP 5 >= 5.1.2)

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

Description

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.

Voorbeelden

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.