Get session information

				
					StructSessionInfo sessionInfo(string idSession)
			

Return the information of the requested session.

REQUIRED

  • idSession string (32)
    Session ID

An Object of type StructSessionInfo

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

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

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

if (isset($idSession)) {
      $clientSOAP->sessionClose($idSession);
}