[mod_python] Sessions (Aaaarggghhhh!!)

Joseph Barillari joeb at mit.edu
Tue Jan 17 01:07:16 EST 2006


On Tue, Jan 17, 2006 at 12:33:59AM -0500, Graham Dumpleton wrote:
> Luis M. Gonzalez wrote ..
> > Thank you Jim!!
> > 
> >  You were right.
> >  Instead of saving the cart items into a cart instance, I did it into a
> > simple dictionary.
> >  I also saved the dict only once at the end the code block.
> 
> To provide some background as to why saving class objects is not good,
> have a read of:
> 
>   http://www.dscpl.com.au/articles/modpython-005.html

Interesting. Is there any way to store a code object in a mod_python
session? From what I've read, that general technique lets you do some
neat tricks:

http://lib.store.yahoo.net/lib/paulgraham/bbnexcerpts.txt

Joe


More information about the Mod_python mailing list