[mod_python] Web sessions and threading.

Gregory (Grisha) Trubetskoy grisha at modpython.org
Fri Jan 25 13:20:55 EST 2002


On Fri, 25 Jan 2002, Alan Kennedy wrote:

> Greetings All,
>
> I'm putting together a session tracking mechanism for
> Apache and mod_python, on Win and Linux. And my mind is
> being twisted trying to decide if I need to worry about
> thread safety or not.

The general answer is "yes". Even thoug Python will make sure that access
is serialized, your logic needs to anticipate and prevent unexpected
changes to an object.

On UNIX it doesn't matter now, but it will with Apache 2.0.

Grisha




More information about the Mod_python mailing list