Here's my case :
I'm using SugarCRM's API, and to make a call, I had to patch some functions to make things work. In one of the function, I had to rewrite this code :
$credentials = array('user_name'=>"xxxxxxx", 'password'=>md5("xxxxx"));
if (SugarWebServiceImpl::login($credentials, null, null)) {
global $current_user;
require_once('modules/Users/User.php');
$current_user = new User();
$current_user->retrieve($_SESSION['user_id']);
$this->login_success();
return true;
}
My problem is that on the same call, my variable $_REQUEST
becomes empty. My question is simple then :
is there any relation between the $_SESSION
variable and the $_REQUEST
variable. Does the $_REQUEST
empties herself when a new $_SESSION
is set ?