title: Thread.CurrentPrincipal.Identity vs HttpContext.User.Identity
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3057937/difference-between-http-context-user-and-thread-currentprincipal-and-when-to-use">difference between http.context.user and thread.currentprincipal and when to use them?</a>  </p>
  </blockquote>
  
  
  
  <p>What's the difference between these two in an ASP.NET application?</p>
  
  <p>I know the <code>HttpContext.User.Identity</code> is set when the user is authenticated through <code>FormsAuthentication</code>. But when is the <code>Thread.CurrentPrincipal.Identity</code> set?  </p>
  
  <p>Do they always hold the same value?</p>
  
  <p>Does that still hold true for other layers of the application that do not have access to a <code>HttpContext</code>?</p>