What is the difference between System.Web.HttpContext.Current.User.Identity.Name and System.Environment.UserName in the context of an ASP.Net web application project?
Here is the code of what I'm trying to do:
Database myDB = DatabaseFactory.CreateDatabase(); bool IsAuthUser = myDB.ExecuteScalar("procIsAuthorizedUser", System.Environment.UserName);
If they are functionally identical, which is better in terms of performance?
This is a C # 4.0 / ASP.Net web application that will see moderate use within the organization. Thanks for answers.
FMFF Jan 12 2018-12-12T00: 00Z
source share