On Wed, 29 Jan 2003, [iso-8859-15] J�rg Walter wrote:
> Hi!
>
> I just uploaded version 0.93 of Apache::AxKit::Plugin::Session to CPAN.
>
> This is just a quick interim release which works with the XSP changes in the
> upcoming AxKit release. There are several bugfixes but no new features.
> Important: 0.93 works ONLY with the current CVS version of AxKit (the
> soon-to-become next release). I will add backwards compatibility if the
> demand arises.
That hack is so horrible ;-)
This is the more elegant version I came up with when I changed XSP.pm:
sub start_document {
return 'use Apache::AxKit::Plugin::Session;'."\n".
'use Time::Piece;'."\n".
'# globally prepare a session object.'."\n".
'my $session;'."\n".
'sub handler { $session = Apache->request->pnotes("SESSION");
shift->SUPER::handler(@_) }'."\n";
}
Granted though, it might not work in the face of multiple attempts to
replace handler().
--
<!-- Matt -->
<:->get a SMart net</:->
Spam trap - do not mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]