How to inplement Session in CGI

bruno at modulix onurb at xiludom.gro
Tue Mar 28 03:06:00 EST 2006


Sullivan WxPyQtKinter wrote:
> Python disappointly failed to provide a convinient cgi session
> management module. 

Probably because there are much better options for web programming in
Python ?

> 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? 

Just like anyone else: by setting a session cookie. This is not related
to CGI, it's just how HTTP works.

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list