[mod_python] Session data (Sorry for bringing this up again...)

Ben Leslie benno at sesgroup.net
Tue Jul 3 16:24:54 EST 2001

On Tue, 03 Jul 2001, Matthew Wood wrote:


> This brings me to my question:
> Would  it  be appropriate to keep a database connection in each of the
> memory  spaces?

Yes. This is exactly what I do.

In your handler you have a global variable holding the db connection. In 
the handler you check the db handler is alive and recreate if necessary 
(this should really only happen the first time that process is used)


More information about the Mod_python mailing list