Online users
C#
3
Posts
3
Posters
0
Views
1
Watching
-
Hi, I need code examples how show number of online users in my site application. Thanks. Rick
-
Hi, I need code examples how show number of online users in my site application. Thanks. Rick
- Count them 1) Display the count But, personally, I wouldn't bother; I mean, look at the count for Code Project, it's pretty much pointless.
-
Hi, I need code examples how show number of online users in my site application. Thanks. Rick
First of all you should have a flag field on your users table which determines which user are online. On my databases this field I name it as "logged" with the type of bit and then on the time when the user is logged to the application then this field will be updated to true and on the time when he is loged out then will be false. Since you have this flag on your users table it's very easy to know which users are online. Regards :)
Qendro