Hi,
After few debugging , I found why my ID are not matching where I though it was issues on variable sharing accross pages ...
Here is the code implemented regarding ID generation and sharing.
With the "debugging" as error output ( see attached ) , I can see the code being run multiple times... and then so, ID regenerated ( double checked, the 1st geenration is working well for javascript usage )
here is the code ... no loop or anything, why is it run multiple times ?
Code:
// generate random unique sessionID
$MyREFSessionID = md5(microtime(true));
// create handle on session object and define sessionIDdevice for later use
$mysession = JFactory::getSession();
$mysession->set('MyREFSessionID', $MyREFSessionID);
$return = 'my java script removed to avoid posting issues ';
$application = JFactory::getApplication();
$application->enqueueMessage(JText::_('My ref ID : ' .$MyREFSessionID), 'error');
return array( 'beforeForm' => $return );
Thx !