Hello Perrin, the problem with loading of CGI::Session I have solved by preloading of CGI module (PerlModule CGI) directly by the start of apache server in http.conf. Anyway I decided not to use this object and now I'm using Apache::Session object.
Regarding using of CGI with mason pages handeled by mod_perl here is one note from http://www.masonhq.com/docs/manual/Devel.html : COMMON TRAPS Do not call $r->content or ``new CGI'' Mason calls $r->content itself to read request input, emptying the input buffer and leaving a trap for the unwary: subsequent calls to $r->content hang the server. This is a mod_perl ``feature'' that may be fixed in an upcoming release. For the same reason you should not create a CGI object like my $query = new CGI; when handling a POST; the CGI module will try to reread request input and hang. Instead, create an empty object: my $query = new CGI (""); such an object can still be used for all of CGI's useful HTML output functions. Or, if you really want to use CGI's input functions, initialize the object from %ARGS: my $query = new CGI (\%ARGS); Cheers Pavel -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Perrin Harkins Sent: Tuesday, January 08, 2008 6:36 PM To: Cina, Pavel (external) Cc: mason-users@lists.sourceforge.net Subject: Re: [Mason] CGI::Session not working with Mason On Jan 8, 2008 4:59 AM, Cina, Pavel (external) <[EMAIL PROTECTED]> wrote: > I don't think that this is a problem of the path. That is what your error message is saying. It could be a permissions problem preventing the path from being read by your apache server. > I have read somewhere in internet that one should not use CGI module in mason > when using mod_perl and not CGI to handle the mason pages. That is not correct, and CGI::Session actually has nothing to do with CGI anyway. > My @INC variable (perl -e 'foreach (@INC) { print "$_\n"; }'): No, check it from inside Mason. You already know it works from the command-line. Your @INC is probably different with Mason. - Perrin ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users