[EMAIL PROTECTED] wrote:
Is there an easy way to get this to work with an earlier version of C::A,
in light of the "critical bug" announced earlier this morning?

The only feature that depends on CGI::App 3.21 is the automatic cookie support. If you don't mind handling the cookies yourself, then you could pass SEND_COOKIE => 0 when calling session_config which turns off cookie support.


You will need to edit the source code to remove the requirement for 3.21. While you are in there you can see how the cookie should be created by looking at the session_cookie method.

Something like this should work for sending the cookie:

my $cookie = $self->query->cookie(
                      -name  => CGI::Session->name,
                      -value => $self->session->id,
                      -path  => '/',
);
$self->header_props(-cookie => $cookie);

I guess in a future version I could support older versions of CGI::APP by dynamically checking to see if there is a header_add method before using it.

Cheers,

Cees

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[EMAIL PROTECTED]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to