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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Inactivate User Account

Inactivate User Account

Scheduled Pinned Locked Moved ASP.NET
helpquestion
5 Posts 3 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.
  • N Offline
    N Offline
    NinaWilliam
    wrote on last edited by
    #1

    Inactivate User Account If a user is already logged in and the administrator closed or inactivate his account and the user clicked on a button, he will get an error message. so, is there away to prevent the administrator from inactivating users accounts while they are loggedin? Nina

    H I 2 Replies Last reply
    0
    • N NinaWilliam

      Inactivate User Account If a user is already logged in and the administrator closed or inactivate his account and the user clicked on a button, he will get an error message. so, is there away to prevent the administrator from inactivating users accounts while they are loggedin? Nina

      H Offline
      H Offline
      HimaBindu Vejella
      wrote on last edited by
      #2

      Hi Nina, Maintain a login status bit value in your database user table. If it’s 1 that means user has logged in If it’s 0 he has logged out. So when the admin deletes or deactivate a user through admin interface, write tour logic such that He couldn’t deactivate the users who are logged in that is with status 1 Happy coding "Every morning I check Forbes 40 richest Indians list , if i'm not there I go to work."

      1 Reply Last reply
      0
      • N NinaWilliam

        Inactivate User Account If a user is already logged in and the administrator closed or inactivate his account and the user clicked on a button, he will get an error message. so, is there away to prevent the administrator from inactivating users accounts while they are loggedin? Nina

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

        Nope. The web is a disconnected environment. The best way is on postback check the securty and if so direct to a page to display the message If you created a HttpModule you could inside this functionality in all requests. 1 line of code equals many bugs. So don't write any!! -- modified at 10:20 Thursday 9th March, 2006

        N 1 Reply Last reply
        0
        • I Ista

          Nope. The web is a disconnected environment. The best way is on postback check the securty and if so direct to a page to display the message If you created a HttpModule you could inside this functionality in all requests. 1 line of code equals many bugs. So don't write any!! -- modified at 10:20 Thursday 9th March, 2006

          N Offline
          N Offline
          NinaWilliam
          wrote on last edited by
          #4

          okay how can i disable the inactive button for the logged in user.. i mean can i write a code that checks who is logged in and who is not? and how?

          I 1 Reply Last reply
          0
          • N NinaWilliam

            okay how can i disable the inactive button for the logged in user.. i mean can i write a code that checks who is logged in and who is not? and how?

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

            Is this a windows user or a custom user from somewhere else? 1 line of code equals many bugs. So don't write any!!

            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