I have been reading this and this. After reading I found myself very confused with my basics now. Please help me out as it involves the basics of networking and JSPs & Servlets
Consider this hypothetical situation:
If I open some www.xyz.com on some browser and don't do anything on that page for day.
Q.1 Would that mean that same connection still exists if next day I request something from that page. Considering Connection: keep-alive is there.
Q.2 How does session works in this context -I have found that if session gets expired so will connection, so what is the difference between HTTP Connection and Session ? Like what happens when we open multiple tab of Facebook in same browser (It is same session but different connection ? Am I correct ?)
Q.3 As mentioned in this article
A major improvement in the HTTP 1.1 standard is persistent connections. In HTTP 1.0, a connection between a Web client and server is closed after a single request/response cycle. In HTTP 1.1, a connection is kept alive and reused for multiple requests. Persistent connections reduce communication lag perceptibly, because the client doesn't need to renegotiate the TCP connection after each request.
How does browser maintain a persistent connection ?
NOTE : It would be better if someone could answer this question this way