Friday, July 27, 2012

grab System.Web.HttpContext.Current.User.Identity.Name at Application_AuthorizeRequest instead of Application_AuthenticateRequest when upgrading a site from IIS6 to IIS7

The Application_AuthenticateRequest method in Global.asax.cs isn't going to work anymore.

2 comments:

  1. You can grab it at PostAuthenticateRequest, which is a little earlier in the request processing if you need it.

    ReplyDelete