You are developing an e-commerce site where user's cart information needs to be preserved across sessions even if they log out. How can you achieve this in ASP.NET Core?
- Use browser cookies to store cart data
- Utilize Session state with server-side storage
- Store cart data in a client-side cookie
- Use local storage in JavaScript
To preserve the user's cart information across sessions, even after they log out, you should utilize Session state with server-side storage. This allows the cart data to be stored on the server, making it persistent across user sessions.
Loading...
Related Quiz
- If you want to enforce that passwords must contain a non-alphanumeric character in ASP.NET Core Identity, which property should you set?
- Your organization wants to implement a deployment pipeline where every code change goes through a series of automated tests and, if successful, gets deployed to production automatically. What kind of deployment strategy is your organization aiming for?
- In your new job, you're asked to develop a registration system for users. Which feature in ASP.NET Core provides out-of-the-box functionalities for user registration and authentication?
- While exploring a sample ASP.NET Core MVC project, you see a folder named "Controllers." What is the primary responsibility of files within this folder?
- The _________ class in ASP.NET Core Identity is particularly useful for creating and managing users.