Jim in Arizona wrote:
> --SNIP--
>>
>> Response.Write request.servervariables("logon_user")
>>
>> This will only contain a value if Anonymous access is disabled.
>>
>> For more, look up ServerVariables at msdn.microsoft.com/library
>>
>>
>
> I've been using Request.ServerVariables("AUTH_USER"), which returns
> the same information as LOGON_USER.
Not always
> Is there any advantage to using
> one over the other?
>
From msdn library:
AUTH_USER Raw authenticated user name.
LOGON_USER The Windows account that the user is logged into.
As you say, they may contain the same information, esp. if Anonymous is
turned off. One is more explicit than the other (its definition, that is)
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
|