Logout

From NETIM
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
Contact Us
Web Hosting
SSL Certificate
Email Hosting
Website Builder
Resellers
Affiliates
Miscellaneous