in reply to Setting cookie code...

I worked my way around it. I left it the way I had it, and just after it printed it the old way, not using CGI.pm, I am just redirecting the window back to the URL, then it shows the main menu.... That way it still creates the cookie with the session key, or whatever it needed to do (Not my program).

I know it did not answer my question, but it works...

Here is what I did:
print "Content-type: text/html\n"; print "Set-Cookie: $COOKIE_KEY=$cookie; PATH=$path\n"; print "Location: https://www.frhweb.com/manage.cgi\n\n"; exit;
thx,
Richard