in reply to The problems of multiple CGI headers
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: The problems of multiple CGI headers
by bradcathey (Prior) on Apr 18, 2005 at 12:31 UTC |