Marc Lambrichs wrote:
Hi All,
I want to save my Apache::Request object in an PerlInitHandler called Initialization and later on during the life cycle of the request call a Initialization->get_request() method to use it again.
perldoc Apache::Request:

           instance

           The instance() class method allows Apache::Request to
           be a singleton.  This means that whenever you call
           Apache::Request->instance() within a single request
           you always get the same Apache::Request object back.
           This solves the problem with creating the
           Apache::Request object twice within the same request -
           the symptoms being that the second Apache::Request
           object will not contain the form parameters because
           they have already been read and parsed.

             my $apr = Apache::Request->instance($r, DISABLE_UPLOADS => 1);

  [... more in the manpage ...]



__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Reply via email to