Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
グーグルで回った後、私は(当然のことながら)意見が異なることに気づきました。だからここに行きます:
イベントハンドラー内ではHttpContext.Current.User なく、他の場所(または他のイベントハンドラーなど)に設定しても大丈夫ですか?AuthenticateRequestBeginRequest
HttpContext.Current.User
AuthenticateRequest
BeginRequest
私自身の質問に答えるために、Current.User以外の場所に設定AuthenticateRequestすると、IIS7.0ではあらゆる種類のとらえどころのないバグが発生します。これらを特定するのは非常に困難ですが、IIS / ASP.NETがサポートするすべての種類の認証方法と、統合vsクラシックパイプラインモードおよび.NETバージョンの並置...全体として、悪い考えです。
Current.User