downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<SoapServer->setClass()SoapVar->__construct()>
Last updated: Thu, 26 Jun 2008

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.

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.



add a noteadd a note User Contributed Notes
Sets persistence mode of SoapServer
There are no user contributed notes for this page.




<SoapServer->setClass()SoapVar->__construct()>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs