please tell me, how to solve the following issue.
javascript.js gets data from givemedata.php which selects data from DB and lock the selected row with a query like
SELECT * FROM data_table LIMIT 1 FOR UPDATE
then javascript.js processes the data an sends some of it back to storemydata.php which shall then delete the locked row.
The issue is how to tell the database that the row shall keep being locked even if givemedata.php has ended and until storemydata.php wants to delete the locked row and is there any kind of handle which could be stored for example in $_SESSION to tell ?