I have a MySql Database Table that notes the date, time and userid of any person logging in and the date time and userid of them when they click the "LOG OUT" button.
However, if they close the window, they are not logged out.
1) Most popup blockers (including my own) won't let another script pop-up
2) The "onUnload" event handler is called not only when a window is closed but whenver the browser url changes.
In searching experts-exchange, a suggestion I saw was to combine php with Cron-Tabs.
I know how to setup a Cron-Job via my Cpanel Hosting Account.
Is there a way to control Cron-Tabs within PHP?
Even if I could, I understand the Cron-Jobs simply work on a schedule (every 15 minutes or every 15 days). How could a Cron-Job respond to a browser window being closed.
I'm due to turn in this project (along with my final invoice) very soon.