Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Online users

Online users

Scheduled Pinned Locked Moved C#
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RichardKly
    wrote on last edited by
    #1

    Hi, I need code examples how show number of online users in my site application. Thanks. Rick

    P Q 2 Replies Last reply
    0
    • R RichardKly

      Hi, I need code examples how show number of online users in my site application. Thanks. Rick

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2
      1. 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.
      1 Reply Last reply
      0
      • R RichardKly

        Hi, I need code examples how show number of online users in my site application. Thanks. Rick

        Q Offline
        Q Offline
        Qendro
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups