in reply to try to send cookie and redirect

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.

Replies are listed 'Best First'.
Re: Re: try to send cookie and redirect
by Georgio (Sexton) on Apr 25, 2002 at 07:46 UTC

    It's clear for me now!
    Thank you very much!