Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Get logged on User in aspx.vb

$
0
0

Hi,

i try to find out the windows user on the start page in a web application.

for securiy reason anonyme authetification on the root directory must be enabled.

therefore Request.LogonUserIdentity.Name return "NT AUTHORITY\USR"

i create also a subfolder and on this folder i disabled the anonyme authetification.

in this folder i put a simple aspx with a function like this:

PublicSub getUser()       Try           Session("LoggedUser") = HttpContext.Current.Request.LogonUserIdentity.Name       Catch ex AsException           Session("LoggedUser") = ""

End Try

EndSub

in the page_load in start page i make a call to this function like this:

    

Dim f AsNew Domain.GetUser    f.getUser()    lsUser = Session("LoggedUser")

But i get still "NT AUTHORITY\USR" back.

somebody have a idea how to solve this problem?


              

xxxx


                       

Viewing all articles
Browse latest Browse all 3527

Trending Articles