Hi again, Subrequests are giving me a hard time :) I managed to use is_initial_req() in my PATH_INFO subrequests, thanks to your previous answer. But I ran into another subrequest : internal REDIRECT. My problem was that the subrequest gets a ResponseHandler call, this time, so I need to have it access the session perl variable used by the main request (I can't tie two variables to the same Apache::Session::File file because I'm trying to use Transactional mode).
Initially, I thought that I would be able to use $r->main() to get the main request and access $r->main()->pnotes() to get my value. But $r->main() returns undef even though $r->is_initial_req() returns 0 :-( Sequence : [Fixup] /perl/script1.pl [Response] /perl/script1.pl /// prints Location: /perl/script2.pl\n\n and returns Apache2::Const::REDIRECT -- no [CleanUp] for /perl/script1.pl here [Fixup] /perl/script2.pl //// $r->is_initial_req() returns 0 and $r->main() returns undef According to the documentation<http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_main_>, this shouldn't happen, right? Is there another way to access the main request ? Is there another way to share perl variables between a request and its subrequests ? Thanks for your time, Cédric Bertolini