On 16 Oct 2003 17:43:14 -0400 Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Thu, 2003-10-16 at 16:42, Simon Dassow wrote: > This is probably because Apache::Session locks until it gets > destroyed, and globals never get destroyed.
Doh... ok, now i know, thanks :) > > My current solution is to store the reference via > > ``$r->pnotes("SESSION_DATA"=>\%session);'' and save $r into $self so > > the other methods have access. But i think i could be made better, > > but i've no idea how, maybe someone of you can help me with that. > Are you just trying to share it with other code during the same > request? What you're doing is fine. You can also always gets the > current request object by calling Apache->request(). Ok, than i dont need $self anymore i think. > > $My::Home=bless({}); > That last part is strange. It's assigning a hash, blessed into > My::Home, to a global called $Home in the package My. I doubt that's > really what you want to do. I think that's ok if i want $self. In the httpd.conf i have PerlHandler $My::Home > > sub handler { > > my($self,$r)[EMAIL PROTECTED]; > > There is only a $self here if you've set this handler up as a method > handler and prototyped it correctly. See > http://perl.apache.org/docs/1.0/guide/config.html#Perl_Method_Handlers > > Have you checked to see what you're getting in $self and $r? Yes, it seems to work :) Thanks for the reply, now its clear to me why it didnt work. Best regards, Simon
pgp00000.pgp
Description: PGP signature