Hai ,
I want to show persons online if they have logged in.
Iam starting a session and registering the session in 'login.php' with the users name once he logs in and also storing the
user name in a dummy table.
I have provided a hyperlink Logout which takes to logout.php
In 'logout.php' iam destroying the session and also deleting the usersname from the dummy table.
Clicking on hyperlink OnlineNow shows the users logged in.
So far it is fine.
But wat if the user closes the browser window without loggin out.The session will be destroyed but the usersname will be
in the dummy table.And if i click on hyper link OnlineNow the users name will be shown as if he is online.
Is there any way so that this problem can be solved?
Thx in Advance
--Ajay