title: AJAX update database on browser exit
body: <p>I have a database with field 'status' which is default 0 when offline and 1 when online. I was wondering if anybody knows a way to update the database in the event of browser close (set the 1 to a 0). It has been suggested that I use a body unload and point to AJAX but i've no idea how to do it...PLEASE help,  thank you...</p>