i got a few question about planetsim's method..
i have a members table...
i guess creating a online table isn't that hard..
and the idea sounds good...
but how do you detect if a user closed their browser
or leave the site?
if a browser leave the site... then in the online table i have to set that user's online status back to 0...
also how would you delete anything after certain amount of time???
is it possible to keep track of all the session opened??
since each session will contain user infomation...
their ip and user name... etc..
so i could look inside all the session and get my list of users??
or is that impossible?