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. Identify whether a user is logged in or not

Identify whether a user is logged in or not

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

    My requirement is to find out whether a user is already logged in or not while the same username is logging in for a second time(may be in another pc/browser). If he is already logged in then I need to log out the first user, kill all his sessions and then the second user becomes active. The user name in first and second log in is the same but may not be the same in person(pc). Has anyone worked around such a requirement. I plan to use the FormsAuthentication. But I don't mind changing it if this requirement gets satisfied without it

    A 1 Reply Last reply
    0
    • T tonymathewt

      My requirement is to find out whether a user is already logged in or not while the same username is logging in for a second time(may be in another pc/browser). If he is already logged in then I need to log out the first user, kill all his sessions and then the second user becomes active. The user name in first and second log in is the same but may not be the same in person(pc). Has anyone worked around such a requirement. I plan to use the FormsAuthentication. But I don't mind changing it if this requirement gets satisfied without it

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

      tonymathewt wrote:

      If he is already logged in then I need to log out the first user, kill all his sessions and then the second user becomes active.

      It should not be ! You should give a message to second user the some one is already logged in from your account.

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

      T 1 Reply Last reply
      0
      • A Abhijit Jana

        tonymathewt wrote:

        If he is already logged in then I need to log out the first user, kill all his sessions and then the second user becomes active.

        It should not be ! You should give a message to second user the some one is already logged in from your account.

        Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

        T Offline
        T Offline
        tonymathewt
        wrote on last edited by
        #3

        My client insists on this feature. He wants the first login to be logged out. Is it possible?

        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