If you use PHP, so when a transaction occurs, you can set the SESSION variable to tell the script to do nothing with the database, i.e. $_SESSION['on_going_transaction'] = true.
When the transaction is complete, simply destroy the SESSION variable so that another transaction occurs. It is much simpler.
user743234
source
share