>> Here is the code I started with and have reverted back to: >> ---------------------------------------------- >> my $cookie = "Set-Cookie: " . >> "$COOKIENAME=$cookieContent; " . >> "Host=www.wpi.edu; " . >> "expires=+1h\n"; >> print $cookie; >> ----------------------------------------------
> One thing I notice is that the RFC mentions "Domain" and not "Host" > > http://www.faqs.org/rfcs/rfc2965.html > > Also, "Version" is required, according to that document. > > It's been a long time since I built cookies by hand, but perhaps the cookie > is being rejected because it does not conform? My guess is that Safari doesn't like the `expires' value. According to the original netscape cookie spec, the value of `expires' should have the form Wdy, DD-Mon-YY HH:MM:SS GMT http://wp.netscape.com/newsref/std/cookie_spec.html (rfc2695 uses Max-Age instead of expires. I haven't seen that format used very often, though). Steve _______________________________________________ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm