Link to home
Start Free TrialLog in
Avatar of endrec
endrec

asked on

ASP.NET/VB.net Equivalent to the Old VBScript Request.ServerVariables("LOGON_USER")

Is there an ASP.NET platform (in VB.NET or C#,. VB preference) equivalent to the old Request.ServerVariables("LOGON_USER")  that was used to obtain NT Usernames (used in an intranet environment)?
Avatar of mem99999
mem99999
Flag of Saudi Arabia image

ASKER CERTIFIED SOLUTION
Avatar of codeclay
codeclay
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Context.User.Identity.Name
Avatar of endrec
endrec

ASKER

Codeclay's solution works!  How would I store this Request.ServerVariables("LOGON_USER") as another session variable (the domain may be stripped eventually) called NTUsername?
C#
Session["NTUsername"]= Request.ServerVariables[LOGON_USER"];
VB.NET
Session("NTUsername")= Request.ServerVariables("LOGON_USER")
?