Which ASP.NET Core middleware is responsible for enabling session state in the application?

  • app.UseRouting
  • app.UseAuthentication
  • app.UseAuthorization
  • app.UseSession
The correct middleware for enabling session state in an ASP.NET Core application is "app.UseSession." This middleware is responsible for handling and managing session data, which can be used to store user-specific information during their interaction with the application.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *