AnsweredAssumed Answered

How Can i obtain current session ID?

Question asked by Parag Mittal on Aug 24, 2016
Latest reply on Aug 24, 2016 by Angel Magana

Hi Team,


I am using Sugar CRM 6.5 on premise version.

I am calling following method:


$get_available_modules_parameters = array(
//Session id
"session" => $session_id,
//Module filter. Possible values are 'default', 'mobile', 'all'.
"filter" => 'all',

$get_all_modules_list_result = call('get_available_modules', $get_available_modules_parameters, $url);

echo '<pre>';
echo '</pre>';


In the above method i am able to get site_url from sugar_config array with the help of $sugar_config['site_url'];

and for session id i am using following API.


    //login ------------------------------     $login_parameters = array(         "user_auth" => array(              "user_name" => $username,              "password" => md5($password),              "version" => "1"         ),         "application_name" => "RestTest",         "name_value_list" => array(),    );     $login_result = call("login", $login_parameters, $url);


But i do not want to use above method all time. How can i get the current session as it is a on premise system and user is already logged in.


please suggest.