difference between http.context.user and thread.currentprincipal and when to use them?

The first thing that the HttpApplication object does when it acquires a thread is to set the thread’s principal to the HttpContext’s principal. This syncs up the principals. If, however, you go and set the Thread’s principal later on, the HttpApplication internally still has a different principal set for the user context. This is why … Read more