//void Application_EndRequest(Object sender, EventArgs e) //{ //} // create GenericPrincipal and set it on Context.User private static void SetPrincipal(string username) { // create principal and set Context.User GenericIdentity id = new GenericIdentity(username); GenericPrincipal p = new GenericPrincipal(id, null); HttpContext.Current.User = p; Debug.WriteLine("GenericIdentity: " + id.GetHashCode(), "Turbine.Web.Global"); }