SessionSetPreference

From NETIM
Jump to: navigation, search


Release
API >= 2.0


Description

Updates the settings of the ongoing session

void sessionSetPreference(string idSession, string type, string value)


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (50) type Setting to be modified lang / sync
string value New value of the Setting lang = EN / FR

sync = 0 (for asynchronous) / 1 (for synchronous)


Return

None


Notes

None


Examples

PHP

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{ 
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN");
 
      $clientSOAP->sessionSetPreference($idSession, "netim.com", "lang", "FR"); 
      $clientSOAP->sessionSetPreference($idSession, "netim.com", "sync", "0"); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if(isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
} 
?>
Personal tools
Namespaces

Variants
Actions
Your account
Domain names
Contact Us
Web Hosting
SSL Certificate
Email Hosting
Website Builder
Resellers
Affiliates
Miscellaneous