session information in cgi scripts

Erik Max Francis max at alcyone.com
Wed Mar 26 03:19:26 EST 2003


James Gregory wrote:

> Simple qn: Is there a module that implements session data? Or rather,
> what is the module that implements session data? I'm using python as a
> CGI so storing stuff in my own webserver isn't really an option. I
> looked on http://python.org/doc/current/modindex.html and nothing
> leapt
> out at me.

You'll need to use things in conjunction with mod_python or one of the
other Web frameworks in order to do this.  Although implementing
persistence is quite easy in Python, with generalized serialization
techniques such as those in the pickle module.

What approach will be best for you depends on the complexity of your
task and how much additional overhead (mostly in terms of a learning
curve for you) you want to incur.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ Honesty has nothing to hide
\__/ Joi
    CAGE / http://www.alcyone.com/pyos/cage/
 A cellular automaton simulation system in Python.




More information about the Python-list mailing list