title: Custom Principal reverting to GenericPrincipal on new requests
body: <p>I'm trying to implement a custom principal and custom identity in a .NET MVC website. I've created a custom principal class which inherits from IPrincipal and a custom identity which inherits from IIdentity. </p>
  
  <p>When a user logs in I set both Thread.CurrentPrincipal and HttpContext.Current.User to my custom principal. When I view either through the debugger the values are set with all the properties.</p>
  
  <p>However once the request is complete and I try and request any other pages both Thread.CurrentPrincipal and HttpContext.Current.User are of type System.Security.Principal.GenericPrincipal and not my custom principal. </p>
  
  <p>Do I need to do anything "extra" to get my custom principal out of the thread or HttpContext?</p>
  
  <p>Thanks</p>