usernames you are running under in current context

add this to your asp.net web page to see which the winforms & webforms usernames that your application is running under:

this will show you which user is the IIS user:


    user (webform): <%=HttpContext.Current.User.Identity.Name %> <br />
    user (winforms) : <%=System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString() %> <br />

What's your thoughts on this?


Protected by WP Anti Spam