Msg#: 3963490 posted 2:18 am on Aug 1, 2009 (gmt 0)
Hi i'm having some problems to answer some questions i'm being ask about cookies.
Cookies gives me headache.
Anybody can help?
Here's how it goes:
I want to store four cookies -- the name, the date the cookie was set, and the user's preferences for background color and foreground color. The name is set to John, the date set to 03-28-2005, the background color is set to red, and the foreground color is set to green.
Question 1: What is the entire cookie string (or name-value pair) returned when John visits the webpage?
Question 2: What code to use to extract the four values from the cookie string? The code should be written in a way that these values can be extracted wathever the order they appear in the cookie string.
Question 3: Why is it a good idea to store the date that the cookie is set? How is this information be useful?
Msg#: 3963490 posted 11:53 am on Aug 2, 2009 (gmt 0)