[fpc-devel] Apache modules?

Michael Van Canneyt michael at freepascal.org
Tue Jul 18 10:28:58 CEST 2006



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.



More information about the fpc-devel mailing list