ted_chou12 Posted February 11, 2007 Share Posted February 11, 2007 can anyone give me a general idea of how you can get the no. of guests online please? I can only get the no. of users online by storing their last page actions, and calcualte a delta time less than 10mins, however, i cannot get the guests online. Thanks Ted Link to comment https://forums.phpfreaks.com/topic/38004-how-to-get-no-of-guests-online/ Share on other sites More sharing options...
trq Posted February 11, 2007 Share Posted February 11, 2007 You do exactly the same for guests. Set a session variable so that you can identify them, log theere movements into a database. Link to comment https://forums.phpfreaks.com/topic/38004-how-to-get-no-of-guests-online/#findComment-181897 Share on other sites More sharing options...
ted_chou12 Posted February 11, 2007 Author Share Posted February 11, 2007 then wouldnt you have to store enormous amount of information? and what do you do with them after the guests leave? Link to comment https://forums.phpfreaks.com/topic/38004-how-to-get-no-of-guests-online/#findComment-181899 Share on other sites More sharing options...
trq Posted February 11, 2007 Share Posted February 11, 2007 then wouldnt you have to store enormous amount of information? At minimum you really only need to store there session id and a timestamp. and what do you do with them after the guests leave? Delete the record. Link to comment https://forums.phpfreaks.com/topic/38004-how-to-get-no-of-guests-online/#findComment-181904 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.