BetterCms.Core.Environment.Host.DefaultCmsHost.OnAuthenticateRequest C# (CSharp) 메소드

OnAuthenticateRequest() 공개 메소드

Called when the host application authenticates a web request.
public OnAuthenticateRequest ( System.Web.HttpApplication application ) : void
application System.Web.HttpApplication
리턴 void
        public override void OnAuthenticateRequest(HttpApplication application)
        {
            // Impersonates user as anonymous, if requested
            if (application.Request["bcms-view-page-as-anonymous"] == "1")
            {
                application.Context.User = null;
            }

            base.OnAuthenticateRequest(application);
        }