How to make online counter to count when people logged in?

Carlmagigka

New Member
Dec 1, 2013
2
0
Hi DevBest,

If i got a CMS and i liked to change the online counter so it counts one more online when the person log in?
Not on the client but just log in from the index to the me page?
 

JayC

Always Learning
Aug 8, 2013
5,495
1,398
Well this would be kinda hard because you could have a variable like "logged_in" and count how many are logged_in every x amount of seconds and refresh it, but the problem comes when people like me just close your browser it doesn't always log you in so you could have like 400 users logged in because no one logs out, but really only 3 people on client.
 

mastermind

New Member
May 27, 2012
20
2
Wouldn't you just log how many are connected to the emulator? In which case you use PHP to pull data from your DB as there should be a field listed for ONLINE status'
 

Users who are viewing this thread

Top