BetterCms.Core.Environment.Host.DefaultCmsHost.OnAuthenticateRequest C# (CSharp) Method

OnAuthenticateRequest() public method

Called when the host application authenticates a web request.
public OnAuthenticateRequest ( System.Web.HttpApplication application ) : void
application System.Web.HttpApplication
return 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);
        }