In this chapter, you'll learn how to create an e-shop. This involves displaying a list of products (using a loop), implementing a shopping cart for each user, supporting user login and logout, and requiring authenticated access for the checkout page.
Suppose that you'd like to create the e-shop as shown in Figure 4-1. Initially, the page lists all the products. Clicking a product link will display the detail page for the product.
Figure 4-1. Your e-shop
OK, let's do it. Create a new ...