PDA

View Full Version : Cookie Counter Question?


matius
05-23-2003, 02:17 PM
I don't know what they want me to do here:

I need to create a document that stores and reads cookies containing a user's name and the number of times he/she has visited a particular Web site. The I have to display the cookies in an alert box each time the user visits the site. At that point I increment the counter cookie by one, and the reset the counter cookie expiration date to one year from the current date.

So, I just throw the user's name into a cookie with the other information? Are they asking me to get the user name? Why do I set the expiration date to one year from the current date? Confused > :bambooz:

Thanks for any help!