|
| Transactions on the Web |
|
Each request from a browser to a web server is processed as independent transaction. - An HTTP connection is established between the browser and the web server
- The HTTP request is tranmitted from the browser to the web server
- The web server examines the URL to determine whether an HTML file or CGI program is being requested
- The web server retrieves the HTML file, or passes the request to a CGI program
- If it is CGI request, the program retrieves the input data, processes it, and returns some output to the web server
- The web server transmits the CGI output or the contents of the HTML file to the browser
- The HTTP connection between the browser and web server is terminated.
Once the HTTP connection is terminated, any information regarding that connection is no longer accessible. If another HTTP request is transmitted from the same user to the same web server, a CGI program on that server cannot recognize it as a request from the same user, unless some session state information has been saved somewhere, such as in cookies. |
Last updated: April 14, 2002
|