Number of Online User Problem
Posted: Tue Jan 11, 2005 4:10 am
Hi Folks,
i've recently made a script which tells the exact number of online users on my website. Method i am using is following
1. i ask username and password
2. if matches in database than insert in another table
3. On Sign Out i delete that user.
it works fine as far as it is concerned with sign out.
but i dont have any solution if user clicks the Cross button of browser and session is lost .But infact i cant delete that user from table. Is there any way to sort out this problem , plz help
i've recently made a script which tells the exact number of online users on my website. Method i am using is following
1. i ask username and password
2. if matches in database than insert in another table
3. On Sign Out i delete that user.
it works fine as far as it is concerned with sign out.
but i dont have any solution if user clicks the Cross button of browser and session is lost .But infact i cant delete that user from table. Is there any way to sort out this problem , plz help