System.Web.HttpContext.Current.User.Identity.Name Vs System.Environment.UserName in ASP.NET
Description System.Web.HttpContext.Current.User.Identity.Name Gets or sets security information for the current HTTP request. (The Name of the Logged in user on your Website) System.Environment.UserName Gets the user name of the person who is currently logged on to the Windows operating system. More Information MSDN – HttpContext.User Property MSDN – Environment.UserName Property