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. Concurrency problem in asp.net

Concurrency problem in asp.net

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-nettutorialquestion
6 Posts 5 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.
  • B Offline
    B Offline
    Balji
    wrote on last edited by
    #1

    Hi guys, I have an interesting scenario. I have a web application created with asp.net 2005. There will be more users who will be using my web application. User's can use the login page to log in to the application and use sign out to logoff the application. My question is :- if for example a user from a machine 1 with an ID "Shankar" has signed into the application by providing the correct credentials and the same user is signing into the application with the same credentials, but this time from a differant machine. How should i prevent this from happening. Please help me out of this problem. Regards Shankar

    J I A 3 Replies Last reply
    0
    • B Balji

      Hi guys, I have an interesting scenario. I have a web application created with asp.net 2005. There will be more users who will be using my web application. User's can use the login page to log in to the application and use sign out to logoff the application. My question is :- if for example a user from a machine 1 with an ID "Shankar" has signed into the application by providing the correct credentials and the same user is signing into the application with the same credentials, but this time from a differant machine. How should i prevent this from happening. Please help me out of this problem. Regards Shankar

      J Offline
      J Offline
      Jay_se
      wrote on last edited by
      #2

      Hi, Follow the below link. It ll guide you towards the solution. http://www.aspfree.com/c/a/ASP.NET/Preventing-Simultaneous-Logons/3/[^]

      Regards, Jay

      1 Reply Last reply
      0
      • B Balji

        Hi guys, I have an interesting scenario. I have a web application created with asp.net 2005. There will be more users who will be using my web application. User's can use the login page to log in to the application and use sign out to logoff the application. My question is :- if for example a user from a machine 1 with an ID "Shankar" has signed into the application by providing the correct credentials and the same user is signing into the application with the same credentials, but this time from a differant machine. How should i prevent this from happening. Please help me out of this problem. Regards Shankar

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

        check the ip address when signing in

        -------------------------------------------------------- 1 line of code equals many bugs. So don't write any!! My mad coder blog

        T 1 Reply Last reply
        0
        • I Ista

          check the ip address when signing in

          -------------------------------------------------------- 1 line of code equals many bugs. So don't write any!! My mad coder blog

          T Offline
          T Offline
          todd 01011101
          wrote on last edited by
          #4

          I don't think the IP is the way to go. (due to NAT, etc..) The IP is unreliable.

          I 1 Reply Last reply
          0
          • T todd 01011101

            I don't think the IP is the way to go. (due to NAT, etc..) The IP is unreliable.

            I Offline
            I Offline
            Ista
            wrote on last edited by
            #5

            yes, and due to the architecture of the web. Knowing the actual computer ID is unreliable also. But you can still trace the IP to the origination IP. It all depends on how much effort you want to use.( there are tons of utilities that can trace this) But, using whois you can trace down the ISP and they usually use the same patterns for IP's. I was on a spam rampage and I can trace anyone back to thier orignal IP that the email was sent from. Even if its sent within IP hider types. And if this tells me thier ip location, so will the requesting machine. all you really need is the ISP server name and a few other bits which are inside the request header. Everything is traceable. There maybe hurdle, but tons of sites in the UK tell you how to get past anyone of them. IP or a mac address is your best bet. But, last time i looked at a header the mac address wasn't there. And due to security you wont be able to get it, unless you create an active x control to run on your page. Much like AJAX. Nick

            -------------------------------------------------------- 1 line of code equals many bugs. So don't write any!! My mad coder blog

            1 Reply Last reply
            0
            • B Balji

              Hi guys, I have an interesting scenario. I have a web application created with asp.net 2005. There will be more users who will be using my web application. User's can use the login page to log in to the application and use sign out to logoff the application. My question is :- if for example a user from a machine 1 with an ID "Shankar" has signed into the application by providing the correct credentials and the same user is signing into the application with the same credentials, but this time from a differant machine. How should i prevent this from happening. Please help me out of this problem. Regards Shankar

              A Offline
              A Offline
              Amit Kumar G
              wrote on last edited by
              #6

              Shankar We had the same sort of functionality in our application and we are storing ip, flag , domain name and checking with or conditions. If any conditions return true value we display message to user. But I am not sure how flexible you are for changing your application design, Amit

              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