Each time they access the page, update a field which tracks the time they last visited; then in your list of users, you can query only those where that time field is less than five minutes ago. (or whatever duration you think is best)
The data will still be in your table, but will be filtered out by the query. If you don't want all that old data clogging up your table, you may want to trigger a regular program to clear out the old records. Otherwise, you could just leave it there, and overwrite it when the same user does eventually come back.
Hope that helps