How to inplement Session in CGI

Peter Hansen peter at engcorp.com
Tue Mar 28 09:03:23 EST 2006


Sullivan WxPyQtKinter wrote:
> Python disappointly failed to provide a convinient cgi session
> management module. Not willing to use external modules, I would like to
> implement a simplest Session object on my own.
> 
> The basic problem is: how could a python CGI program understand several
> requests are in the same session? Definately, request from different IP
> would be easy to identified to be in different sessions, but request
> from the same IP would not. 
> 
> Anyone has any idea?

Maybe you could get over your irrational fear of external modules just 
long enough to download one or two and examine them, to learn how they 
do it.  Then you could answer your own question...




More information about the Python-list mailing list