Thursday, 12 May 2022

asp.net web api session

 session hanling in web api 2 

 protected void Application_PostAuthorizeRequest()

        {

            HttpContext.Current.SetSessionStateBehavior(SessionStateBehavior.Required);


        }


give this method global.cs 

No comments:

Post a Comment

API run block issue run api from cmd

  ✅ Debug Checklist – “Access is Denied” (.NET / Visual Studio) 🔹 Identify Problem ☐ Error: Unable to start program (.exe) – Access is deni...