Session CGI!

Robert Brewer fumanchu at
Tue Feb 24 17:06:32 CET 2004

John wrote:
> I am not looking for magic. What I am looking for is an elegant
> solution to manage session info like in ASP/PHP, both of which have
> doing this for quite a while. It's hardly exotic. It has been a couple
> of years since I last used ASP, but I think it was session("var") =
> value in ASP. Can't be simpler than that.

Hi John,

Are you aware that you can use Python as an ASP language? I use tiny ASP
pages with content like:

from myapp.html import uiasp
uiasp.UserInterfaceASP(Application, Session, Request,

...where the dispatch() call writes content to the Response object. I
wrote a more complete treatment at which
shows how to write an app so you can deploy it on both IIS/ASP and
mod_python. I admit, I haven't touched the Session object--perhaps you
can work that bit out and let me know how to do it. :)


Robert Brewer
Amor Ministries
fumanchu at

More information about the Python-list mailing list