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.
Loading...
Related Quiz
- To enable MVC in ASP.NET Core's Startup.cs, which method should be invoked inside the ConfigureServices method?
- What is the primary role of the "View" in the MVC design pattern?
- How can you pass data from a controller to a Razor view?
- How does the "Controller" in the MVC design pattern typically receive user input in ASP.NET Core?
- ASP.NET Core supports the dependency injection design pattern. The __________ method in the Startup.cs file is used to configure services for this purpose.