0

I am using asp.net configuration tool for my website.
Have everything working fine (The sign out button and the database)
Now I want to implament something that shows the users who are online and offline.
An icon that shows up next to a users datbase table that if they are online shows icon "Online"
if Offline then icon showing "Offline"

Any help would be appriciated.

Thanks.

4
Contributors
4
Replies
31
Views
3 Years
Discussion Span
Last Post by aryan.sen03
0

Or if they are online turn their row green.

Thanks again for help.

0

best thing to do would be to have a field, in the users table, that acts like a flag. It should be a bit data type and 0 if the user is offline, updated to be a 1 when the user signs in successfuly, and return to a 0 when they log out successfuly.

We will need to know how your tables are structured, in terms of where all the user info is stored, in order to give you a more accurate solution.

Dani may be a good person to ask about this as she has the little beacon next to the time of a post is that user is online (that will probably be dependent on a flag like the one I mentioned above).

Hope this helps.

0

what will you do if user login in his panel but closed a broweser. if we doing this according by you. user still showing online.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.