Manual do PHP
Anterior |  | Próxima

# SoapServer->setPersistence()

(no version information, might be only in CVS)

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

## Descrição

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

## Parâmetros

`mode`

  One of the `SOAP_PERSISTENCE_XXX` constants.

## Valores de retornado

Não há valor retornado.

## Exemplos

Exemplo 1. Some examples

`<?php $server->setPersistence(SOAP_PERSISTENCE_SESSION); $server->setPersistence(SOAP_PERSISTENCE_REQUEST); ?>`

> Nota: 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.

## Veja também

SoapServer->__construct()
SoapServer->setClass()

Anterior | Principal | Próxima
SoapServer->setClass() | Acima | SoapVar->__construct()