[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] CAP::DBH and CAP::Session


On 6/22/05, Curtis Hawthorne <suppressed> wrote:
> So, I'm guessing what's happening is that the database handle inside of
> CAP::DBH is getting DESTROYed before the session object.  Is there any
> good way to get around this?

That should only happen if you explicitly close the database handle. 
CAP::Session will keep a reference to the database handle, so the
database handle will not be destroyed until after CAP::Session is
finished with it.

Another possibility is that your session never goes out of scope,
hence it is never automatically flushed.  This can happen under
mod_perl if you keep the session in a global variable, or trap it in a
closure.

Cheers,

Cees

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.