in reply to global variable between scripts
You may also want to read these nodes: Adding "state" to HTTP, CGI question: session management mechanisms.
HTH, Valerio