Logout

From NETIM
Revision as of 15:56, 2 August 2017 by Netim (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Release
API >= 2.0

It is recommanded to use the function sessionClose instead.

Description

Closes an opened session

void logout(string idSession)


Parameters

Format Variable Description Notes
string (32) idSession Session ID to close


Return

none


Notes

none


Examples

Langage PHP

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{ 
      $idSession = $clientSOAP->login("XXXX", "XXXX", "EN");       
 
      $clientSOAP->logout($idSession); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
?>


JAVA

DRSServiceLocator service = new DRSServiceLocator(); 
String idSession; 
 
try 
{ 
      DRSPortType port = service.getDRSPort(); 
      idSession = port.login("XXXX", "XXXX", "EN"); 
 
      port.logout(idSession); 
} 
catch (RemoteException re) 
{ 
      System.out.println(re.getMessage()); 
} 
catch (ServiceException se) 
{ 
      se.printStackTrace(); 
}


Personal tools
Namespaces

Variants
Actions
Your account
Domain names
Shared Hosting
Old Hosting offers
SSL Certificates
Resellers
Affiliates
Contact Us
Miscellaneous