Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: CGI and Redirect/URI/Location

by btrott (Parson)
on Jun 18, 2001 at 07:17 UTC ( #89223=note: print w/replies, xml ) Need Help??


in reply to CGI and Redirect/URI/Location

The redirect has to go in the header, and after you've called 'header', you've already sent the header entirely. So you need to send the cookie as part of the redirect. And you can do that using the 'redirect' function/method:
print redirect(-cookie => $c);
If you have a CGI object, use
print $cgi_object->redirect(-cookie => $c);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://89223]
help
Chatterbox?
[oakbox]: Anyone else having difficulty looking at search.cpan.org?
[oakbox]: I keep getting a proxy error.
[marto]: try http://metacpan. org/
[marto]: I can't access search.cpan right now either. I prefer the metacpan search and general formatting anyway. Also it seems faster
[oakbox]: Yeah, the front page of cpan.org uses metacpan.org now for search results
[oakbox]: but there are a billion links 'out there' linking to search.cpan.org.

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-07-26 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (388 votes). Check out past polls.