Can't get logonuser
From: Dave Clark (nobody_at_yahoo.com)
Date: Wed, 13 Aug 2003 13:42:12 -0700
After looking again, I think the WindowsIdentity gets the
<domain>\<username> instead of what I say below.
>I'm pretty new at ASP.Net, but even when I had Anonymous
>off and Integrated Windows Authentication on,
>ServerVariables("LOGON_USER") is still empty. Here's
>I did to get the logged on user.
>Dim thisUser As System.Security.Principal.WindowsIdentity
>Dim UserLog As String
>UserLog = thisUser.GetCurrent.Name.ToString
>UserLog will contain the <machineName>/<logged on user>,
>such as ntsrvr1/ASPNET, if you're running in debug.
>out "ASPNET" for the logged on user.
>>I would like to get user logon from server by
>> USERLog = Request.ServerVariables("LOGON_USER")
>>but it isn't see. i don't know what the problem
>how i can
>>solve in this. But i try to get other value can see
>>*** Sent via Developersdex http://www.developersdex.com
>>Don't just participate in USENET...get rewarded for it!