I have a PHP project which launches a FLASH application that needs to run database queries in the context of the current session. I know how to get variables into FLASH from the browser, I just need to know how to set the session id on PHP pages called from the flash application.
to send the data to flash, i can get the session id this way:
$my_session_id = session_id(); // send this to flash
then when flash POSTs data to my PHP page, this is my plan:
session_id($_POST[\'session_id_from_flash\']);
is this the proper way to handle things?