CookieTest CGI ScriptI wrote this test script for cookies in January 1997, in preparation for running a survey of Mac developers on platform choices. Here's the email that I sent to the WebSTAR-talk, Mac Scripting and Frontier-talk lists.
You should be able to quit your browser and have it remember the number (this will test the cookie expiration date). It should work with MSIE or Netscape, not sure about other browsers.
BTW, the reason we're using cookies is so that no person can vote twice. In the first survey we had it set up so that no IP address could vote twice, but this cut off a lot of people who access the net behind a firewall.
I also want to save off how the individual voted in the cookie so that if we do another survey we can measure changes without storing information on the server. A perfect application for cookies, I think.
PS: See the DaveNet piece Cookies for some culture.