コード例 #1
0
        protected void Application_PostAuthorizeRequest()
        {
            var userCreationError = HttpContext.Current.Response.Headers[nameof(AuthenticationException)];

            if (!string.IsNullOrWhiteSpace(userCreationError))
            {
                BaseViewPage <int> .SendApplicationUserCreationErrorReponse(userCreationError);
            }
            if (HttpContext.Current.Request.Url.AbsolutePath.Contains("/FormAPIs/"))
            {
                HttpContext.Current.SetSessionStateBehavior(SessionStateBehavior.Required);
            }
        }