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 get the user's loginid

how to get the user's loginid

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

    dear friend, i want to get the user's loginid in to my VB / ASP applications. can anyone please help. you may please throw some light on various ways of getting this info. we are having Windows server 2003 domain and as soon as a user logs into the domain using Windows Authentication, i want to run a service to get his loginid & proceed with other tasks. thanks

    M L 2 Replies Last reply
    0
    • B BSRK

      dear friend, i want to get the user's loginid in to my VB / ASP applications. can anyone please help. you may please throw some light on various ways of getting this info. we are having Windows server 2003 domain and as soon as a user logs into the domain using Windows Authentication, i want to run a service to get his loginid & proceed with other tasks. thanks

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Are you asking the classic ASP? Though this is the ASP.NET room, but you can have a look at the server variable LOGON_USER ( or AUTH_USER ) from the Request object. For more information, see server variables[^]

      1 Reply Last reply
      0
      • B BSRK

        dear friend, i want to get the user's loginid in to my VB / ASP applications. can anyone please help. you may please throw some light on various ways of getting this info. we are having Windows server 2003 domain and as soon as a user logs into the domain using Windows Authentication, i want to run a service to get his loginid & proceed with other tasks. thanks

        L Offline
        L Offline
        laocat2003
        wrote on last edited by
        #3

        Try (ASP.NET C#) User.Identity.Name.ToString() or string user = HttpContext.Current.User.Identity.Name.ToString(); user = user.Substring(user.LastIndexOf("\\") + 1); Hope this help.

        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