in reply to CGI and Redirect/URI/Location
The redirect has to go in the header, and after you've called
'header', you've already sent the header entirely. So you
need to send the cookie as part of the redirect. And you
can do that using the 'redirect' function/method:
If you have a CGI object, useprint redirect(-cookie => $c);
print $cgi_object->redirect(-cookie => $c);
|
---|
In Section
Seekers of Perl Wisdom