Connecting Tech Pros Worldwide Forums | Help | Site Map

Retrieve user login name

User Groups
Guest
 
Posts: n/a
#1: Aug 17 '08
On our intranet when a user first navigaes to my web application he is
prompted by the Browser to provide his user name and a password. Is there a
way of retrieving a user name on the server? If not, how else can I
personalize the user?

Thanks



Anthony Jones
Guest
 
Posts: n/a
#2: Aug 17 '08

re: Retrieve user login name


"User Groups" <markgoldin_2000@yahoo.comwrote in message
news:e47QMPIAJHA.4064@TK2MSFTNGP02.phx.gbl...
Quote:
On our intranet when a user first navigaes to my web application he is
prompted by the Browser to provide his user name and a password. Is there
a
Quote:
way of retrieving a user name on the server? If not, how else can I
personalize the user?
Try Request.ServerVariables("LOGON_USER") or
Request.ServerVariables("AUTH_USER")

--
Anthony Jones - MVP ASP/ASP.NET


User Groups
Guest
 
Posts: n/a
#3: Aug 17 '08

re: Retrieve user login name


I am trying Request.ServerVariables("LOGON_USER")
and despite that I have an Anonymous Access removed
it is still an empty string.
"Anthony Jones" <Ant@yadayadayada.comwrote in message
news:Ot%23lIdJAJHA.4368@TK2MSFTNGP06.phx.gbl...
Quote:
"User Groups" <markgoldin_2000@yahoo.comwrote in message
news:e47QMPIAJHA.4064@TK2MSFTNGP02.phx.gbl...
Quote:
>On our intranet when a user first navigaes to my web application he is
>prompted by the Browser to provide his user name and a password. Is there
a
Quote:
>way of retrieving a user name on the server? If not, how else can I
>personalize the user?
>
Try Request.ServerVariables("LOGON_USER") or
Request.ServerVariables("AUTH_USER")
>
--
Anthony Jones - MVP ASP/ASP.NET
>
>

User Groups
Guest
 
Posts: n/a
#4: Aug 17 '08

re: Retrieve user login name


AUTH_USER worked, Thanks

"User Groups" <markgoldin_2000@yahoo.comwrote in message
news:ukfGDoJAJHA.4588@TK2MSFTNGP03.phx.gbl...
Quote:
>I am trying Request.ServerVariables("LOGON_USER")
and despite that I have an Anonymous Access removed
it is still an empty string.
"Anthony Jones" <Ant@yadayadayada.comwrote in message
news:Ot%23lIdJAJHA.4368@TK2MSFTNGP06.phx.gbl...
Quote:
>"User Groups" <markgoldin_2000@yahoo.comwrote in message
>news:e47QMPIAJHA.4064@TK2MSFTNGP02.phx.gbl...
Quote:
>>On our intranet when a user first navigaes to my web application he is
>>prompted by the Browser to provide his user name and a password. Is
>>there
>a
Quote:
>>way of retrieving a user name on the server? If not, how else can I
>>personalize the user?
>>
>Try Request.ServerVariables("LOGON_USER") or
>Request.ServerVariables("AUTH_USER")
>>
>--
>Anthony Jones - MVP ASP/ASP.NET
>>
>>
>
>

Closed Thread


Similar ASP / Active Server Pages bytes