I think I confused the issue with my code. It boils down to, how do I 1) print a cookie, and 2) redirect in the "same breath?" ... I have finally managed to write the cookie and redirect at the same time, but without using CGI conventions.
You can pass the cookie to the redirect method; redirect is really just a specialized version of header:
print $query->redirect('http://www.example.org/', -cookie => $newcooki +e);
Though now I look, I can't actually spot where this is documented.
Smylers
In reply to Re: The problems of multiple CGI headers
by Smylers
in thread The problems of multiple CGI headers
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |