persistant web state

Skip Montanaro skip at pobox.com
Tue May 20 11:48:09 EDT 2003


    Jay> I'm lloking for a technique to allow me to keep memory alive
    Jay> between invocations of a cgi program.  What I mean is that if I
    Jay> have two cgi requests come into a script, they should be able to
    Jay> access the same data in memory and not have to load from a
    Jay> database.

Why not have a long-running process manage a shared memory segment using
mmap?  Your CGI processes could then attach to that segment.  

Skip





More information about the Python-list mailing list