Apache::Session -- Go Out of Scope!!!

2000-04-07 Thread Russell D. Weiss
I'm using Apache::Session within a large Web application (consisting of many scripts). We also have multiple developers on this project, some of whom are junior developers with only a bit of mod_perl experience. In any case, I've written a custom session package that wraps to Apache::Session.

Re: Apache::Session -- Go Out of Scope!!!

2000-04-07 Thread Jeffrey W. Baker
On Fri, 7 Apr 2000, Russell D. Weiss wrote: I'm using Apache::Session within a large Web application (consisting of many scripts). We also have multiple developers on this project, some of whom are junior developers with only a bit of mod_perl experience. In any case, I've written a

Re: Apache::Session -- Go Out of Scope!!!

2000-04-07 Thread Perrin Harkins
On Fri, 7 Apr 2000, Russell D. Weiss wrote: Normally, this works great. No problem at all. This object goes out of scope at the end of the script (it's scoped lexically with "my"). It also goes out of scope when "die" is explicitly called. If I add "die 'Blah blah blah'" to an app, things

RE: Apache::Session -- Go Out of Scope!!!

2000-04-07 Thread Russell D. Weiss
You could try using a PerlCleanupHandler to kill any open locks. $r-register_cleanup( \clear_locks ); - Perrin Perrin, Thanks a lot. This worked great :-). Actually, as I say, I'm wrapping to Apache::Session with another object that handles cookies, expiration, etc. I just registered a