Hello,
I have an problem.
I have an member area where you can come too thru an login script. This script updates an mysql value too "1".
But when somebody leaves the page i want the mysql value too be changed too 0.
How can i doo this ?
Use the onUnload in the body tag to call a pop up that updates your sql db then closes itself with a window.close() in onLoad.
Phodetheus
But that will cause you too logout when you go towards an other page in the mem dir.
(I tryed it already)
The way I did that with soulmatchmaker.com was to update a TIMESTAMP field with every page load and made the assumption they were online if the TIMESTAMP of that member was in the last 4 minutes otherwise I guess they were gone. So rather than use a flag to see if they online i query the TIMESTAMP field.