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. Database & SysAdmin
  3. Database
  4. How i can know who the users connected in my application?

How i can know who the users connected in my application?

Scheduled Pinned Locked Moved Database
questioncsharpdatabasewpfhelp
4 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.
  • V Offline
    V Offline
    VisualLive
    wrote on last edited by
    #1

    HI All, i wish begin to work about a feature new for me ,i'n my project i have a database( with SqlServer) and an application (developing in WPF) the purpose of this application is to manage/handle about Accountancy and others Departement,so i created a Passwords and Roles(for Users) to access in the application ,now i will create a system to knows how many Users are connected to the Application(via Database )and show that in a listBox(for example like a normal Chat Application i wish knows who is online and offline) but i don't know where i need begin to work out this feature ,i'm strange to this feature so if you have any suggestion,link and help i will appreciate so much your help. Thanks so much. P.S. if my question is not clear i will rewrite it...however sorry in anticipate Best Regards Smile

    L I 2 Replies Last reply
    0
    • V VisualLive

      HI All, i wish begin to work about a feature new for me ,i'n my project i have a database( with SqlServer) and an application (developing in WPF) the purpose of this application is to manage/handle about Accountancy and others Departement,so i created a Passwords and Roles(for Users) to access in the application ,now i will create a system to knows how many Users are connected to the Application(via Database )and show that in a listBox(for example like a normal Chat Application i wish knows who is online and offline) but i don't know where i need begin to work out this feature ,i'm strange to this feature so if you have any suggestion,link and help i will appreciate so much your help. Thanks so much. P.S. if my question is not clear i will rewrite it...however sorry in anticipate Best Regards Smile

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      That's a large and complex problem. I'd suggest breaking it apart into smaller problems, like; * maintain a list of users in the database * put a "marker" on those user-records who signed in, and removing it when they log out * displaying a list of users who got the "I'm logged in" marker (who's online now-query) * send a message to a user (what will you do if the user signs out before the message is delivered?) * ..etc Good luck :)

      I are troll :)

      1 Reply Last reply
      0
      • V VisualLive

        HI All, i wish begin to work about a feature new for me ,i'n my project i have a database( with SqlServer) and an application (developing in WPF) the purpose of this application is to manage/handle about Accountancy and others Departement,so i created a Passwords and Roles(for Users) to access in the application ,now i will create a system to knows how many Users are connected to the Application(via Database )and show that in a listBox(for example like a normal Chat Application i wish knows who is online and offline) but i don't know where i need begin to work out this feature ,i'm strange to this feature so if you have any suggestion,link and help i will appreciate so much your help. Thanks so much. P.S. if my question is not clear i will rewrite it...however sorry in anticipate Best Regards Smile

        I Offline
        I Offline
        ISoftwareDev
        wrote on last edited by
        #3

        I'd suggest you maintain a table of who log on/off your application and use this as the basis for your solution. Every time someone logs on, add them to the table. Everytime the log off, remove them from the table. You can then do a simple

        select

        satement to get a list of all the logged on users and display that in a list box.

        V 1 Reply Last reply
        0
        • I ISoftwareDev

          I'd suggest you maintain a table of who log on/off your application and use this as the basis for your solution. Every time someone logs on, add them to the table. Everytime the log off, remove them from the table. You can then do a simple

          select

          satement to get a list of all the logged on users and display that in a list box.

          V Offline
          V Offline
          VisualLive
          wrote on last edited by
          #4

          Thanks do much for you help, now i try to put in action your advice hoping to work out this feature if i can't i will tell you about my error. Have a happy work. Nice Regards.

          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