On Tue, 18 Jul 2006, Graeme Geldenhuys wrote:

Hi,

I am new to web applications.  How does Apache Modules differ from CGI apps?

CGI Apps:
* The application executes, creates output and exits.
* Nothing stays in memory between user input

Apache Modules:
* no idea?

Apache loads your module, initializes it, and then, per page request,
calls a couple of event handlers.

The module is only unloaded when apache is unloaded.

* Can things be kept in memory between user input? example: When
retrieving data from a database, can the connection be kept open?

Yes, this can be done in the initialization.

* can I load user data (example: login data) and keep in available
while the user is working inside the web app?

Yes. It's kept as long as the module is not unloaded.
(i.e. till apache is restarted)

Michael.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to