To make the logging out process 'idiot-proof' for the average user that likes to abruptly click the 'X' when closing their browser, I thought it would be a good idea to, perchance, have a javascript popup that might say something like:
"Log-Out by clicking the 'Log-out button"
(and then an OK button)
This way, the user can not close out the application by X'ing out, but rather by clicking the correct 'log-out' button, and at the same time, they correctly destroy their session variables...
Has anyone ever seen anything like this? Also, if anyone has any suggestions, shoot them my way!!!
PS. I am very aware of the PHP garbage collection process, but the sole purpose of this function will be to ensure a proper logout, each and every time.
TIA for the suggestions, Mike