Whoops, found out the problem. The perl CGI modules on the production
server were outdated version 2.81. Updating the CGI module solved the
problem.



Regards,
Au

On Thu, 2004-06-24 at 15:01, Au Yeong Wing Yau wrote:
> I need a customized session/cookie management system that can do
> redirection, so I implemented one using PerlTranshandler. When I tested
> it on a Linux box for prototyping, the following works well:
> 
> sub handler
> {
>       ...
>       my $q = new CGI;
>       my $id = $q->cookie(-name=>"myCookie");
>       ...
>       (do checking, redirect to different locations based on
>       different criteria)
>       ...
>       (direct to dummy.pl if cookie not found)
>       ...
> }
> 
> But when I moved this to the production server running SunOS, the
> handler is unable to fetch any cookie at all. I have verified that the
> handler is indeed executed, but no cookies are fetched. However I can
> fetch the cookies in dummy.pl without any problems.
> 
> 
> I will like to know if this is a problem with the production server, or
> we are not supposed to fetch cookies in PerlTranshandler at all. The
> production server is not under my administration, so I'll need
> confirmation/information before bringing up the matter to the
> administrator.
> 
> 
> The production server(SunOS) and my prototype server(Linux) runs the
> same configuration:
> Apache 2.0.49
> mod_perl 1.99_14
> Perl 5.8
> 
> 
> 
> Thanks in advance,
> Sincerely,
> Au
> 


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to