session information in cgi scripts

Dale Strickland-Clark dale at riverhall.NOTHANKS.co.uk
Wed Mar 26 04:35:08 EST 2003


James Gregory <james at anchor.net.au> wrote:

>Hi all,
>
>I'm relatively new to python, and this is the first time I've tried to
>use it for web stuff.
>
>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.
>
>Thanks,
>
>James.
>
>

There's two main ways to maintain session data. 1: Store it at the
server and identify it with a unique session id in a cookie. 2: store
it all in cookies and hidden form fields. You can mix the two
approaches too. Each has advantages and disadvantages.

Either way, I'm not really sure how a module could help you in this
one respect without dictating the wider architecture of your
application.
--
Dale Strickland-Clark
Riverhall Systems Ltd




More information about the Python-list mailing list