Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving full logon user name

Status
Not open for further replies.

JoseDiepeveen

Programmer
Jun 30, 2011
1
NL
Hi,

I am trying to find out how I can retrieve the full user logon name of the current user.
ServerVariables["LOGON_USER"] returns the pre-windows 2000 name, with a maximum of 20 characters. I would like to retrieve the full user logon name with more than 20 characters.

Thanks in advance
 
you mean asp.net?
Code:
[url=http://msdn.microsoft.com/en-us/library/system.web.httpcontext.user.aspx]HttpContext.User[/url].Identity.Name

Jason Meckley
Programmer

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top