[ Team LiB ] Previous Section Next Section

Exercises

  1. In the previous hour's "Exercises" section, you created a script that uses a cookie or query string to save user preferences from page to page. Each page in the environment should display a user-defined background color and greet the user by name. Re-create this using PHP's session functions.

  2. Create a script that uses session functions to remember which pages in your environment the user has visited. Provide the user with a list of links on each page to make it easy for her to retrace her steps.

    [ Team LiB ] Previous Section Next Section