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. Web Development
  3. ASP.NET
  4. I don't want login in a system when he loggedin in another system with a user name

I don't want login in a system when he loggedin in another system with a user name

Scheduled Pinned Locked Moved ASP.NET
helpquestion
4 Posts 4 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
    Saba02
    wrote on last edited by
    #1

    Hi all, I don't want login in a system when another person logged in another system with the same user name. How can i do this I need your help, Thank You,

    Hoda

    B A C 3 Replies Last reply
    0
    • S Saba02

      Hi all, I don't want login in a system when another person logged in another system with the same user name. How can i do this I need your help, Thank You,

      Hoda

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      You can use some common database for the all loggedin users and check every time when one is going to login whther someone has loggedin with a same userid or not.

      Cheers!! Brij

      1 Reply Last reply
      0
      • S Saba02

        Hi all, I don't want login in a system when another person logged in another system with the same user name. How can i do this I need your help, Thank You,

        Hoda

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        You can suggest as brij said, or try to find one article on codeproject, there was a great soluation for that problem. I am not able to find that link right now. I will send you if i got that same link .

        cheers, Abhijit My Recent Article : Beginner's Guide to ASP.NET Application Folder

        1 Reply Last reply
        0
        • S Saba02

          Hi all, I don't want login in a system when another person logged in another system with the same user name. How can i do this I need your help, Thank You,

          Hoda

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          The obvious way is in your database have a field that tells you a person is logged in, and if they are, don't allow another login. The issue with this is, you cannot be sure to catch any event that tells you a person has logged out, so you should also store a timestamp every time that user requests a page and when you check if they are logged in, also check that to see if it's been long enough to assume it has expired.

          Christian Graus Driven to the arms of OSX by Vista.

          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