a client establishes a connection to a server process. how does the server knows that the client is still connected? 

For example the server is a web server and a client is a browser. Let's assume that the requirement is that the server should always wants to know that the client is connected.

How is that implemented/designed?