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. Block Concurrent user

Block Concurrent user

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorial
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.
  • Y Offline
    Y Offline
    yesu prakash
    wrote on last edited by
    #1

    Hi, How to block the login of same user at different location in asp.net. Thankyou, ypki

    R 1 Reply Last reply
    0
    • Y yesu prakash

      Hi, How to block the login of same user at different location in asp.net. Thankyou, ypki

      R Offline
      R Offline
      R Giskard Reventlov
      wrote on last edited by
      #2

      Do you mean to allow users to login on one machine only such that they can't simultaneously login from another machine? Presumably you are tracking that users have logged in? If so, there are a number of ways to do this, the simplest being check to see if they are already logged in if. If they are, refuse the new login. You could also capture the IP address of the machine and refuse a login from another IP address if they are still logged in on the first machine. This also means handling logging out and dead sessions - leave you to figure out the nuts and bolts of all of this as appropriate to your application.

      "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me

      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