http://qs321.pair.com?node_id=6387


in reply to Recommended modules for handling cookies?

OK,
  1. Sorry for screwing up with the - which should have been _. That's what my code has.
  2. The cookie does get set, with a later expiration date than today.
  3. The cookie is in my netscape cookies file.
  4. Here's that snippet of code:
$cookie = $ENV{HTTP_COOKIE}; $name="cookie_name"; $value="cookie_value"; $cur_date = "Tue 28 Mar 2000 13:49:23 -0500"; $expires_date="Wed, 29 Mar 2000 13:49:23 -0500"; $path = "/"; $domain = ".tripod.com"; print "Content-type: text/html\n"; print "Set-cookie: $name=$value; date=$cur_date; expires=$expires_date +; path=$path; domain=$domain"; print " <html><body>$cookie</body></html> ";
HELP! What is fishy to me are my dates! And what exactly is that -0500 doing there? (I got this code from somewhere else)