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

Re: Unable to create session, add params, and redirect

by Your Mother (Archbishop)
on May 16, 2009 at 18:03 UTC ( [id://764437]=note: print w/replies, xml ) Need Help??


in reply to Unable to create session, add params, and redirect

This should help though I don't have time to cook up a full working example today-

print CGI::redirect( -uri => $whatever, -cookie => $session->cookie, -status => 302 );

You can send cookies with redirects. I don't know if CGI::Session has the ability to do headers like that but CGI.pm definitely does so give the above a shot. Remember to be careful not to double print headers. Test from the command line to be sure about the output if your code isn't trivial. The browser and server can disguise problems.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 21:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found