Hello dear colleagues from the VH forum,
In one of my last threads I received some good ideas about how to control which users were still logged into the reserved area of my webpage.
Now I am puting a 1 on a field when they login and I have also a lastclick time field on the database when they jump from one page to other through the use of my links.
But when they click on the X(close window) of the browser, is there a way of logging them out in that same instant ? Without being obliged to make comparisons everytime between lastclick and current time?
I have been in a website (no publicity...) instantchess.com that when You click on the X to close window Your receive a window.alert from the system saying goodbye or something like that.
This means that there must be a way of controling if that X was clicked and if there is a window with a message, of course that there could be a clean logout written on the mySQL database.
Can someone teach me how we can control this event ?
Thanks in advance for all the answers,
pipesportugal
In one of my last threads I received some good ideas about how to control which users were still logged into the reserved area of my webpage.
Now I am puting a 1 on a field when they login and I have also a lastclick time field on the database when they jump from one page to other through the use of my links.
But when they click on the X(close window) of the browser, is there a way of logging them out in that same instant ? Without being obliged to make comparisons everytime between lastclick and current time?
I have been in a website (no publicity...) instantchess.com that when You click on the X to close window Your receive a window.alert from the system saying goodbye or something like that.
This means that there must be a way of controling if that X was clicked and if there is a window with a message, of course that there could be a clean logout written on the mySQL database.
Can someone teach me how we can control this event ?
Thanks in advance for all the answers,
pipesportugal
Comment