This topic is locked
[SOLVED]

 Detecting browser or tab closing in a PHPRunner project

1/31/2012 12:01:39 PM
PHPRunner General questions
D
drgregory author

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

Sergey Kornilov admin 1/31/2012

DrGregory,
you cannot do that. When browser is closed no status update is sent to the web application.