wardk answered your question, but I thought I'd explain why your version worked.
When a browser receives an "http-equiv" meta tag, it takes the information in that tag and treats it like one of the headers. Thus, your meta({-http_equiv =>'refresh'... is effectively the same as sending a redirect header.
It's interesting to note that in some circumstances, the meta tag is preferable to a header redirect. IIS, in its last three versions, ignores a cookie that is set when you attempt to redirect, unless you swith to nph (non-parsed header) scripts. This has been a consistently annoying bug that frequently crops up. Of course, Apache doesn't have this problem :)
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to Re: try to send cookie and redirect
by Ovid
in thread try to send cookie and redirect
by Georgio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |