Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Setting Cookies First and Redirecting Page

by chargrill (Parson)
on Sep 15, 2006 at 18:24 UTC ( [id://573218]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://573218]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-03-28 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found