in reply to how to set a cookie without using CGI.pm?

Cookie-Set must precede Content-type:
$cookie = "Set-Cookie: cid=$cookie_id; expires=01-Jan-2020 01:01:01 GM +T;"; print "$cookie"; print "Content-type: text/html\n\n";

Replies are listed 'Best First'.
Re^2: how to set a cookie without using CGI.pm?
by merlyn (Sage) on Feb 04, 2005 at 15:34 UTC
      thanks for the replies guys, i think it was because i didn't set the cookie with a path and/or i didn't have the day in date format for the time, works now!