What is the difference between socket and session?

Question

What is the difference between socket and session?

Re: What is the difference between socket and session?

1. An SSL session is a mechanism through which connections can be established by re-using previously negotiated handshakes.
2. A socket is one endpoint of a two-way communication link between two programs running on the network. A socket is bound to a port number so that the TCP layer can identify the application that data is destined to be sent.