Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
The stupid question is the question not asked
 
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);


Comment on Re: CGI and Redirect/URI/Location
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-04-20 06:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls