[mod_python] Session persistence issues and interpereter wiedness...

Fred of UrlBit.Us fred at urlbit.us
Sun Mar 11 10:17:44 EST 2007


On Friday 09 March 2007 15:43, Fred of UrlBit.Us uttered thusly:
> I am having a problem with PSP that seems to be copying objects in the
> vars list rather than using the originals.

What I thought was "object duplication" wasn't at all -- actually, I am 
seeing two problems (and I mis-read my log dumps).

I am not wanting PSP to automatically handle the session object, since I want 
to handle that myself outside of PSP. So I pass in the session object as a 
part of a composition object variable to PSP space, so PSP will leave it 
alone. Then I explicitly save the Session with session.save().

My problem is that for whatever the reason, the session appears to not be 
loading on the next query, even though the SID is still there and the 
Session object report it's not new. I have confirmed that the save is saving 
the modifications (by hex-dumping the contents of the DBM files, etc., but 
they are not loading. No exceptions are generated either. I create the 
session in the handler with Session(req).

The 2nd issue I am seeing -- maybe related, but I doubt it -- is that the 
interpreter for the virtual server seems to reload every so often, as I 
notice modules and plugins being reloaded after so many queries. Is this 
suppose to happen?

Any help would be greatly appreciated.

Running Linux (32-bit), Apache 2.0.55, mod_python 3.3.1, Python 2.5

--Fred 
http://urlbit.us
Bite those long URLs!


More information about the Mod_python mailing list