Dear sirs,
Just for security reasons, I need to detect every user attempt of closing the browser window (or tab) my PHPRunner project is running on. When this happens -no matter what page in the project the user is- I want to take the same action as if the user pressed the log out button: to record in an audit table the user ID, the client's IP and the timestamp the event of closing the session occurred.
Is there a way to activate this functionality only once in the project so as to make it available to all the pages it contains? Think that my project consists of dozens of table pages and it would be too hard to set up the same event in each one.
Any ideas?
Thenk you in advance,
DrGregory