[mod_python] Session problem

Jakub Labath jlabath at gmail.com
Wed Nov 22 12:36:33 EST 2006


Hi,

I'm experiencing serious problems with my mod_python app.
User A gets an unique cookie from my app.
User B gets an unique cookie from my app.
They surf for a bit suddenly the same unique cookie is sent to both
the user A and user B.
In turn user A becomes user B or vice versa.
It seems as if the same cookie was served by mistake to two different clients.

See the attached log.

The other thing I noticed in the log is that the mod_python request
was actually the same. Is that OK would two diferent request have the
same memory address?

The mod_python app is django.
I've talked to one of the core django developers and he has never
heard of such a thing nor did anybody else.
My set-up is very similar to theirs nor am i doing anything special
that would explain such behaviour.

My set-up is

Python 2.4.3
Apache 2.0.58 (mpm_prefork)
Mod Python 3.1.4
Linux camembert 2.6.18-gentoo-r2camembert #1 SMP Sun Nov 19 11:05:54
EST 2006 i686 Intel(R) Xeon(TM) CPU 2.80GHzGenuineIntel GNU/Linux

Any help is much appreciated.

-- 
Jakub Labath
-------------- next part --------------
09:34:11 Process 20804 Request 0x417963cc Response 0x40d21a2c IP: 192.168.31.161 Session 64867a758e708588bacf224a2017707d modpython request is 0x41764ee8
09:47:13 Process 30323 Request 0x40d2522c Response 0x40d23aec IP: 192.168.31.161 Session 64867a758e708588bacf224a2017707d modpython request is 0x40878a18
09:47:33 Process 30343 Request 0x40bbabac Response 0x40d62dcc IP: 192.168.31.161 Session 64867a758e708588bacf224a2017707d modpython request is 0x40878a18
11:57:41 Process 30324 Request 0x40cf1cac Response 0x40d82d4c IP: 192.168.31.139 Session 64867a758e708588bacf224a2017707d modpython request is 0x40878a18
11:59:11 Process 30327 Request 0x40d299cc Response 0x40d4f6ac IP: 192.168.31.161 Session 64867a758e708588bacf224a2017707d modpython request is 0x40878a18
12:00:58 Process 30325 Request 0x40d440ec Response 0x40d3e26c IP: 192.168.31.139 Session 64867a758e708588bacf224a2017707d modpython request is 0x40878a18


More information about the Mod_python mailing list