To implement this sort of personalization, we need a way to “remember” the user, which we're going to do with a cookie. A cookie is a small amount of information sent by the Web server to the browser and stored on the user's computer. When the user returns to the Web site that left the cookie, the contents of the cookie are returned to the server.
We are going to store a cookie on the user's computer, which will later be used to personalize the list of films shown by the TopPicks page. A good time to send the cookie is after we complete an order, so we will make it part of the TicketConfirm page. The OnPage method for TicketConfirm seems like a natural place to add this code, but we cannot do so. To understand why, we need to learn a bit about how the browser and Web server communicate.