Close session

				
					void sessionClose(string idSession)
			

Close an opened session.

REQUIRED

  • idSession string (32)
    Session ID to close

 

$clientSOAP = new SoapClient('https://URL.wsdl');

try {
    $idSession = $clientSOAP->sessionOpen('XX000', 'xxxxxxxx');
    $clientSOAP->sessionClose($idSession);

} catch (SoapFault $fault) {
    echo 'Exception : ' . $fault->getMessage() . "\n";
}