• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Week: 3 At a Glance > Answers for Day 17, “Advanced Techniques: Tracking and Us...

Answers for Day 17, “Advanced Techniques: Tracking and Using User Data”

1: What is the session variable for in this project?
A1: The tempUserID session variable is used to temporarily store the userID until it can be set in a cookie. URL parameters are not used because they offer too much of an opportunity for the user to change the userID.
2: How do you add a cookie data binding?
A2: A cookie is actually just another type of response variable (in ASP); you use the exact same data binding used for URL parameters.
3: Why are layers useful for customized pages?
A3: Layers offer almost all the features of a full Web page “within a Web page”—this makes it extremely easy to work with and manipulate. Additionally, the ability to position a layer anywhere on a page is very useful .
4: How long will the server remember a user's preferences?
A4: The date that was set in the code is 12/13/2030. You can modify the cookie's expiration date when it is first assigned. There's little doubt that most people will probably find 2030 sufficiently far in the future to be considered forever.
5: Why aren't the user's preferences all stored in a single long table?
A5: Using the tables defined in the chapter, you can easily extend the available options. If the user's preferences were stored in a single table record, you'd have to add new fields to the table each time a new feature was added.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint