[mod_python] The right way to handle sessions

Gandalf gandalf at geochemsource.com
Thu Aug 12 17:45:32 EDT 2004



Amir Salihefendic wrote:

>
> This works ok! They have the same sid. I.e. you first call 
> index.py/createSession and then index.py/getSameSession

...

>
> This does not work - it makes an infinitive loop..! Now to fix this 
> you need to unlock the session in createSession (.. I have no clue why 
> you have to do this..?).

Very strange. I use this to create a session:

self.session = session = Session.Session(req)

and this one to save it:

self.session.save()


I never call session.load() but it works fine for me.

Best,

Laci 2.0




More information about the Mod_python mailing list