Tapping Into User Context

Learn how to make our application user-specific by adding user context to the web page.

An essential requirement of security management is that we have access to the current user’s details. Throughout this course, presuming we’ve followed the examples, the cart’s name has simply been My Cart.

Making the shopping cart user-specific

With the user login details, we can suddenly support a different cart for every user. The code below shows how to do just that:

Get hands-on with 1200+ tech skills courses.