gazalec Posted April 21, 2007 Share Posted April 21, 2007 I was wondering if anyone had any ideas about an online/offline status thing for a website , i was wondering if i would be done using some sort of sessions like when the login it has a session saying they are online but i dunno how the offline part would work Thanks for any help you can give me Link to comment https://forums.phpfreaks.com/topic/48061-online-offline/ Share on other sites More sharing options...
V34 Posted April 22, 2007 Share Posted April 22, 2007 Of what I know, PHPfusion updates a row every time a page is loaded. This is the same row they use for the "Last Seen Online" opportunity, which holds the time(); value. Link to comment https://forums.phpfreaks.com/topic/48061-online-offline/#findComment-234955 Share on other sites More sharing options...
pocobueno1388 Posted April 22, 2007 Share Posted April 22, 2007 Working off of what v34 said....yes, you would need to have a row in the DB that updated the current time each time they clicked. Then you would just call a query from the database selecting if they were online in the last 2 minutes or whatever and if they were display online, if not display offline. Obviously there are many ways of doing this...I would think this was the easiest though. Link to comment https://forums.phpfreaks.com/topic/48061-online-offline/#findComment-234956 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.