title: remove information from mysql table when user close his Browser
body: <p>i m creating two table(in mysql) named</p>
  
  <ol>
  <li>table_temp_guest </li>
  <li>table_temp_order</li>
  </ol>
  
  <p>now if a guest enters then we save his personal information in this first table and if he purchase something from any stall ,it saved as a temporary order in table_temp_order.</p>
  
  <p><strong>now my question is :</strong></p>
  
  <blockquote>
    <p>i m using session id, so when user goes to logout( without checkout) then 
    i delete his information(personal and order) from both table )using session id,
    BUT if he close the browser, or does not go to checkout(any reson) then how 
    to delete his information from both tables
    please suggest me how to do this?</p>
  </blockquote>
  
  <p><strong>additional question:</strong>
   is there any other way to do this whole process by some other manner.</p>