[mod_python] persistant variables

Alexander Steinert stony8 at gmx.de
Fri Mar 22 17:18:50 EST 2002


> How can I force mod_python to only have one instance of the variable? Or
> should I be trying to do this in an entirely different way?
> 
> I can set Apache to only start with one server (which makes it work),
> however it will spawn more servers if it gets two hits at the same time, so
> this won't really work.

I thought about this topic a few weeks ago and came to the conclusion
that that you can't force the wished behaviour (if apache is forking).

You need persistent storage in a DBMS or a file and must take care of
concurrent accesses.

HTH

Stony




More information about the Mod_python mailing list