Hi. I am trying to kill sessions that are due to the closing of windows by users. I am using PHP, Apache with SSL support as well as MySQL
At present, my system logs users that logs to a database as well as build unique sessions for each unique user. My system works fine when users log off by clicking 'exit'. This action kills the session build especially for this user as well as to remove this user from the temporary log. (Each user can only log from one window at any one time in time)
But when a user just closes the window, the session for that user is not killed and the user is not removed from the temporary log.
Is there any way I can make it such that if the user closes the window, its session will be killed and the user will be removed from the temporary log? The temporary log is created in a MySQL database.
Please advice. Thanks in advanced.