How to inplement Session in CGI

Piet van Oostrum piet at cs.uu.nl
Tue Mar 28 04:38:12 EST 2006


>>>>> "Sullivan WxPyQtKinter" <sullivanz.pku at gmail.com> (SW) wrote:

>SW> Python disappointly failed to provide a convinient cgi session
>SW> management module. Not willing to use external modules, I would like to
>SW> implement a simplest Session object on my own.

>SW> The basic problem is: how could a python CGI program understand several
>SW> requests are in the same session? Definately, request from different IP
>SW> would be easy to identified to be in different sessions, but request
>SW> from the same IP would not. 

http://starship.python.net/~davem/cgifaq/faqw.cgi?req=show&file=faq02.011.htp
or google for python cgi session for more.
But why write it yourself if someone else has already done the work?
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org



More information about the Python-list mailing list