A web application is a special form of client-server application where we have a client that interacts with a user in the form of a web page. The server is responsible for producing the results the user will see and to accept and process the input from the user.
This process works something like this:
- Imagine that you visit a website and are prompted to log in. You enter your username and password. When you press the Log in button, the information you entered is sent to the server:
- The server requests the information stored in a database about this user:
- The database returns the information it has for this user. Note that usually, the password will not be stored in plain text as illustrated here, but for clarity, we ignore that in this scenario: