Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: mod_perl cookies and CGI::Apache2::Wrapper

by amasidlover (Acolyte)
on Dec 27, 2009 at 13:57 UTC ( #814515=note: print w/ replies, xml ) Need Help??


in reply to mod_perl cookies and CGI::Apache2::Wrapper

Turns out that I had a few issues - the first one being that my headers weren't actually being sent from my header method at all in mod_perl mode. However once that was fixed I found the following solution: 1) header takes a hashref of _correctly_ named headers i.e. instead of -type and -cookie it needs Content-Type and Set-Cookie and bake() isn't needed at all i.e.

$self->cgi->header( { 'Content-Type' => ( $args{type} || 'text/xml' ), 'Set-Cookie' => $self->cookie, } );
Once that was changed my original calls to cgi->cookie didn't need any changes for mod_perl mode.


Comment on Re: mod_perl cookies and CGI::Apache2::Wrapper
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2014-12-28 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (178 votes), past polls