Handling Multiple Cookies
You will often want to deal with more than one cookie at a time, and Script 10.8 shows you how to read from more than one cookie and display the information. This example shares a fair amount of code with the "Using Cookies as Counters" example.
Script 10.8. Use an array to deal with multiple cookies in a single script.
To handle multiple cookies: