Hey guys, I have a login page, and users logging it via that page. There are few pages on there, and on each one there is a link Exit. wich is logging out the user. If user clicks Exit then it is not problem , I get that user is offline now. But how can I determine is user still online or not if user just closes the explorer window ? Thank you ?
Sorry, But I want to show list of users who is online right now. That is why I am asking . I have table and there I keep users status , if user is online I flag it as online, when user clicks exit I flag it offline. But when user just closes the explorer , how can detect is user online or not ?
so store a timestamp along with the information. then delete where timestamp < expire. as long as they stay active, keep updating the time stamp. otherwise if they're idle for over say 10 minutes or so, remove it and count the rows.