Page 1 of 1

Online Offline

PostPosted: Wed Oct 08, 2014 8:05 pm
by Epiales
Me again lol...

Been thinking of having an icon in a users profile that would show it they are online or offline. If it's online, then the icon would show colored, if offline, then it would show black or something. I can probably figure out the icon in php but have no idea where to begin to setup the online/offline in php. Any ideas?

Re: Online Offline

PostPosted: Thu Oct 09, 2014 12:47 am
by MikuzA
A simple solution would be that you store some kind of 'last_activity' timestamp, and if that timestamp is over 5-10 minutes old, that would mark the user offline. Otherwise Online.