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. Retrieveing logged in user Id in internet explorer

Retrieveing logged in user Id in internet explorer

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netsecurity
4 Posts 4 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
    sandeep kumar pundhir
    wrote on last edited by
    #1

    hi, I mean in my asp.net application , the user logged in using windows authentication, now on the load of first page i want to get his logged in id and show it in the textbox. I do not need to do this with any session variable. How can i get so? waiting reply . thanx sandeep

    P A I 3 Replies Last reply
    0
    • S sandeep kumar pundhir

      hi, I mean in my asp.net application , the user logged in using windows authentication, now on the load of first page i want to get his logged in id and show it in the textbox. I do not need to do this with any session variable. How can i get so? waiting reply . thanx sandeep

      P Offline
      P Offline
      Patzolino
      wrote on last edited by
      #2

      Hi, Try using the User.Identity.Name property. Regards, Plamen Dimitrov

      1 Reply Last reply
      0
      • S sandeep kumar pundhir

        hi, I mean in my asp.net application , the user logged in using windows authentication, now on the load of first page i want to get his logged in id and show it in the textbox. I do not need to do this with any session variable. How can i get so? waiting reply . thanx sandeep

        A Offline
        A Offline
        Armando_Ramirez
        wrote on last edited by
        #3

        Try the following: TextBox.text=User.Identity.Name

        1 Reply Last reply
        0
        • S sandeep kumar pundhir

          hi, I mean in my asp.net application , the user logged in using windows authentication, now on the load of first page i want to get his logged in id and show it in the textbox. I do not need to do this with any session variable. How can i get so? waiting reply . thanx sandeep

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

          If your impersonate is set to true. Otherwise that will give the user that is set to run the web app. I also believe that only if that user has suffienct rights to impersonate will it work 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