title: How to use a transaction query mysql to keep it on for a few page in PHP?
body: <p>I know how to using a transaction query in mysql and also commit or rollback. I want to make a portfolio of an application in my website. Some guest could try to use it, but when it end (either they logout or suddenly close the browser), i want all the query they've been made to be rollback so i dont have clean the database.</p>
  
  <p>But then i found that start transaction is not long last when i hit a submit button in a form and move in to another page as usual. Is there anything i can do about it? To keep the transaction query ON/TRUE wherever page i landed.  Thanks (and sorry for my bad english language).</p>