Getting User Logon ID

Results 1 to 3 of 3

Thread: Getting User Logon ID

  1. #1
    Join Date
    Dec 1969

    Default Getting User Logon ID

    Hi All,<BR>In the past I have retrieved users&#039; network logon ids by importing the namespace System.Security.Principal and then using code like: Response.Write(User.Identity.Name);<BR><BR>I am tyring to do this again and in this particular project, it is not working. Does anyone have any idea why this might be?<BR><BR>TIA, Sven

  2. #2
    Join Date
    Dec 1969

    Default IIS Authentication Methods?

    Hi Sven,<BR><BR>Is the authentication methods (Directory Security &#062; Authentication Methods) for this particular project set up with Integrated Windows Authentication instead of anonymous access?<BR><BR>Just a thought.

  3. #3
    Join Date
    Dec 1969

    Default RE: Getting User Logon ID

    Exactly what code are you using to get the logon id?<BR><BR>I have a project that uses FormsAuthentication and the line "HttpContext.Current.User.Identity.Name" returns me the username just fine.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts