I need to send some cookies to the visitor with my CGI-script,and then to redirect him to the other site. But because of the 'cookies', that I'm sending with:
...
print $cgi->header(-type=>"text/html",-cookie=>$cookie);
... ,
I couldn't use (after sending 'header'):
...
use CGI qw(redirect);
...
print redirect('http://www.newsite.com');
... ,
and that's why I tried to use:
...
use CGI qw/:standard/;
...
print $cgi->start_html(-head=>meta({-http_equiv =>'refresh',
-content=>"0; url=http://www.newsite.com"}));
...,
and it works now, but I'm not sure whether this HTML TAG would work with all visitors.
So is there any better way to redirect to the new site?
Thanks!
In reply to try to send cookie and redirect by Georgio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |