ASP.NET how to access User.Identity.IsAuthenticated in Aplication Request module?
问题 I am using Form Authentication Method in ASP.Net and the problem is it only protect " .aspx" files. I am trying to protect " .php" files in "kcfinder" folder from unauthenticated users. I implemeted this class in "App_Code" folder. public class KCChecker { public static void Process(HttpApplication Application) { HttpRequest Request = Application.Context.Request; HttpResponse Response = Application.Context.Response; string url = Request.Path.ToLower(); if (url.IndexOf("/kcfinder/") == 0 &&