In memory persistence - used as CGI

Alex Martelli aleaxit at yahoo.com
Mon Oct 30 15:50:51 EST 2000


<youngcho_sd at my-deja.com> wrote in message
news:8tk9aq$p80$1 at nnrp1.deja.com...
> I'm using Python as a CGI language (for use both
> in MS IIS & Linux Apache).  Is there a mechanism
> for in-memory persistence of data for use by
> different HTTP requests to different Python CGI
> pages?  Specifically, I'm looking for something
> similar to an Application() variable in MS IIS 4.

No, each CGI 'hit' is served by a completely separate
process (I think this holds for both IIS and Apache),
so there IS no memory address that is shared by
different CGI-hits (including two successive hits
on the same page from the same address).  You
have to go to disk, and/or use cookies.


Alex






More information about the Python-list mailing list