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. how to restrict the multiple login by the user

how to restrict the multiple login by the user

Scheduled Pinned Locked Moved ASP.NET
databasehelptutorial
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.
  • S Offline
    S Offline
    sPaudel
    wrote on last edited by
    #1

    I am trying to prevent the multiple login by the user. To do that i keep the data in the database on login and when logout i delete the data. But if there is some error and session is timeout the deletion can not be done. the session_End event of global.asax do not work. I use the sessionstate mode ="InProc"

    C V S 3 Replies Last reply
    0
    • S sPaudel

      I am trying to prevent the multiple login by the user. To do that i keep the data in the database on login and when logout i delete the data. But if there is some error and session is timeout the deletion can not be done. the session_End event of global.asax do not work. I use the sessionstate mode ="InProc"

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

      You should set a timeout of your own on the database, so that logins time out in your system also.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      S 1 Reply Last reply
      0
      • C Christian Graus

        You should set a timeout of your own on the database, so that logins time out in your system also.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        S Offline
        S Offline
        sPaudel
        wrote on last edited by
        #3

        i have already done that too but it gives the problem in various cases.

        S 1 Reply Last reply
        0
        • S sPaudel

          i have already done that too but it gives the problem in various cases.

          S Offline
          S Offline
          Sathesh Sakthivel
          wrote on last edited by
          #4

          uttambro wrote:

          but it gives the problem in various cases.

          What problem?

          Regards, Satips.:rose:

          1 Reply Last reply
          0
          • S sPaudel

            I am trying to prevent the multiple login by the user. To do that i keep the data in the database on login and when logout i delete the data. But if there is some error and session is timeout the deletion can not be done. the session_End event of global.asax do not work. I use the sessionstate mode ="InProc"

            V Offline
            V Offline
            Vasudevan Deepak Kumar
            wrote on last edited by
            #5

            This significantly addresses the issue: http://www.eggheadcafe.com/articles/20030418.asp[^]

            Vasudevan Deepak Kumar Personal Homepage Tech Gossips

            1 Reply Last reply
            0
            • S sPaudel

              I am trying to prevent the multiple login by the user. To do that i keep the data in the database on login and when logout i delete the data. But if there is some error and session is timeout the deletion can not be done. the session_End event of global.asax do not work. I use the sessionstate mode ="InProc"

              S Offline
              S Offline
              sathesh pandian
              wrote on last edited by
              #6

              hi, create sessions with userid then if another user is trying to use it means it will give errors when the session value is same. check the session before creating the sessions. session("userid")=uttambro all the best

              Sathesh Pandian

              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