PhpRiot
Follow phpriot on Twitter
Sponsored Link
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store
Free iPad/iPhone App
Available on the App Store

  • PHP manual
  • Zend Framework manual
  • Smarty manual
  • PHP articles
  • PHP training

SoapServer::setPersistence

(PHP 5 >= 5.1.2)

SoapServer::setPersistenceSets SoapServer persistence mode

Description

public void SoapServer::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 or SoapServer::setObject.

Note:

The persistence SOAP_PERSISTENCE_SESSION makes only objects of the given class persistent, but not the class static data. In this case, use $this->bar instead of self::$bar.

Parameters

mode

One of the SOAP_PERSISTENCE_XXX constants.

SOAP_PERSISTENCE_REQUEST - persist the object for the duration of a request.

SOAP_PERSISTENCE_SESSION - persist the object for the duration of a session.

Return Values

No value is returned.

See Also

PHP Manual