protected void Application_AuthenticateRequest(object sender, EventArgs e) { HttpApplication app = (HttpApplication)sender; FormsPrincipal.SetUserInfo(app.Context); }