Greetings Dear! It does not work in Joomla to put the value of a variable in a session variable and then use this value in another file, generally I do the following:
in the root directory is the file index.php, in it I get the value from the geth parameter with the following code:
$token = JRequest::getVar('_hm_token'); And this is the only thing that I do. Then nothing happens:
In this same index.php I try to put the value of the $token variable into the session:
$session = JFactory::getSession(); $session->set('_hm_token', $token); Then I try to get the value of this session variable in $ tokenSess already in another file, which is components / com_jshopping / controllers
$tokenSess = $session->get("_hm_token"); to send this value in a get parameter via this code
file_get_contents("http://track.lead-r.ru/?method=reportAction&transaction_id=".$order->order_number."&advertiser_id=15066&offer=15066A7lMr&token=".$token); Tell me how to be.