A method and software for executing a web-based application is described
in which the session state of the application is stored in a database.
The session state is swapped into a higher speed memory when the user is
actively using the database services. In one embodiment, active use of
the database services is controlled by connecting to and disconnecting
from the database for each request.