Subject: | M::A::USC for CGI::Maypole |
i've been playing with Maypole for a few days and like it alot. i need to run it with the CGI::Maypole front-end and noticed that all the docs (and it seems UserSessionCookie as well) are geared to the Apache/ModPerl usage.
i hacked together a login cookie from the examples and had some trouble actually sending the cookie back to the user.
i ended up adding this to CGI::Maypole
sub send_output {
my $r = shift;
my $cookies = $r->{cookies};
my @header;
if ( $cookies ) { @header = ( -cookies => [ @{ $cookies } ] ) }
print $r->{cgi}->header( @header,
-type => $r->{content_type},
-content_length => length $r->{output},
);
print $r->{output};
}
so, could there be some approved way in future Maypole to add fields
to the header to return to the browser? or did i miss something
obvious somewhere.