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.
Add your answer
Loading...

Leave a comment

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