Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Environment variables for different threads

Status
Not open for further replies.

manishrathi

Programmer
Feb 26, 2009
6
US
When a request is received by the server for CGI, the parameters it receives are through QUERY_STRING environment variable. So QUERY_STRING is the environment variable for a server and when a request is received, it holds the string that comes with that request. Now, if a second request comes in with different set of parameters and same QUERY_STRING is holding the new values, then string that came with first requst will be lost. Like this , if many request keep coming in, new threads will be opened up to handle each request. But how will all these threads be supplied string values that came with that particular request because QUERY_STRING will be holding the values that came with the last request ?
 
each request for the script runs as a seperate process

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top