title: using php and mysql, insert timestamp on user logout
body: <p>Using PHP and MySQL</p>
  
  <p>When a user logs in I am able to insert their log-in time-stamp into MySQL while using sessions and with the use of a function. The function would update the database and works wonderfully.</p>
  
  <p>Now, is it possible to get a time-stamp and have it recorded into MySQL the same way when the user clicks on "log-out" and where the log-out will run <code>session_destroy()</code>?</p>
  
  <p>All I am looking for is a time stamp of when the user clicks on log-out, just so I know they have been log-out. I not worried if they just closed the browser and walked away. </p>
  
  <p>I have tried doing something like session_destroy(something); and using this as function. All I got was run-time errors. Is this something that is even possible to do?</p>