$cookie_id = &random_id; $cookie = "Set-Cookie: cid=$cookie_id; expires=01-Jan-2020 01:01:01 GMT;\n"; print "Content-type: text/html\n"; print $cookie; print "\n"; #### Content-type: text/html Set-Cookie: cid=MbGFp1L0uIGT50BAlb5wovvwT86thIm5; expires=01-Jan-2020 01:01:01 GMT;