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. Limit the number of simultaneous logins

Limit the number of simultaneous logins

Scheduled Pinned Locked Moved C#
databasecsharpquestion
2 Posts 2 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.
  • S Offline
    S Offline
    Shree
    wrote on last edited by
    #1

    In a smart client application such as TaskVision http://www.windowsforms.net/TaskVision/[^] how does one implement single login? In the current implementation, the application allows any number of logins using the same username and password. Could you please suggest how it can be modified to prevent login if there is a user already logged in with the same username and password? Or better still, to limit the number of simultaneous logins to a predefined number? Keeping a login count in the database could be a solution, but is there a reliable way to know when a user stops using the program? Can the constraint be defined in the stored procedure or in the web service(AuthService)? Thanks.

    R 1 Reply Last reply
    0
    • S Shree

      In a smart client application such as TaskVision http://www.windowsforms.net/TaskVision/[^] how does one implement single login? In the current implementation, the application allows any number of logins using the same username and password. Could you please suggest how it can be modified to prevent login if there is a user already logged in with the same username and password? Or better still, to limit the number of simultaneous logins to a predefined number? Keeping a login count in the database could be a solution, but is there a reliable way to know when a user stops using the program? Can the constraint be defined in the stored procedure or in the web service(AuthService)? Thanks.

      R Offline
      R Offline
      rah_sin
      wrote on last edited by
      #2

      i think u can use app.config file to add tag which hold the value of maximum user with same userID and password and if ur storing logged user info in DB then u can check the user limit at the time of starting ur application.

      rahul

      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