in reply to Setting Cookies First and Redirecting Page

Which way do you really want to redirect a user? You've got at least three:

  1. meta http-equiv="refresh"
  2. $query->redirect
  3. print "Location: $url\n\n";

I'd suggest picking one, and then send all your headers at the same time. And certainly don't spit out HTML while the client thinks you're sending headers (print "<meta http-equiv"...).



--chargrill
s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)

Replies are listed 'Best First'.
Re^2: Setting Cookies First and Redirecting Page
by Anonymous Monk on Sep 15, 2006 at 18:41 UTC
    It's that way just to show different was that I've tried already. I just don't know how to anymore.