in reply to Re: CGI.pm, passing query params to upload hook
in thread CGI.pm, passing query params to upload hook

Hi!
Thanks for a quick reply. Somehow I've missed Understanding CGI::upload_hook(), the example shown there did give me a hint how to solve my problem. I've set a cookie with the ID and read it before creating the query object. Here is my code:
sub get_cgi_query { my %cookies = CGI::Cookie->fetch; my $hook_id = $cookies{CGISESSID}->value unless !defined($cookies +{CGISESSID}); if (defined($hook_id)) { return CGI->new(\&hook,$hook_id); } else { return CGI->new(); } }