Thanks Perrin, Yes I am using Apache::Registry and you were right, it was just a scoping problem - I can't believe I didn't see it before.
Everything is finally working as it should!!! -Chris >> -----Original Message----- >> From: Perrin Harkins [mailto:[EMAIL PROTECTED] >> Sent: Friday, February 21, 2003 12:02 PM >> To: Chris Faust >> Cc: Modperl >> Subject: Re: mod_perl 2 apache::session and "or die" >> >> >> Chris Faust wrote: >> > I think it is in the locking as if I let things hang long >> enough and then >> > shut down Apache, I get a error of: >> > >> > Can't call method "disconnect" on an undefined value at >> > /usr/lib/perl5/site_perl/5.6.1/Apache/Session/Lock/MySQL.pm >> line 89 during >> > global destruction. >> >> That's a good sign. It is trying to cleanly disconnect from the >> database when you shut down the server. >> >> I think my initial guess was wrong. This is probably just a scoping >> problem in your code. I suspect you are either putting the session >> object in a global or using it in a closure. Try to reduce the section >> of code that uses Apache::Session to a very small example that >> reproduces this problem and post it here. Also, are you using >> Apache::Registry? >> >> - Perrin