In computer science and networking in particular, a session is a time-delimited two-way link, a practical (relatively high) layer in the TCP/IP protocol enabling interactive expression and information exchange between two or more communication devices or ends – be they computers, automated systems, or live active users (see login session). A session is established at a certain point in time, and then ’torn down’ - brought to an end - at some later point. An established communication session may involve more than one message in each direction. A session is typically stateful, meaning that at least one of the communicating parties needs to hold current state information and save information about the session history to be able to communicate, as opposed to stateless communication, where the communication consists of independent requests with responses.

An established session is the basic requirement to perform a connection-oriented communication. A session also is the basic step to transmit in connectionless communication modes. However, any unidirectional transmission does not define a session.

Communication Transport may be implemented as part of protocols and services at the application layer, at the session layer or at the transport layer in the OSI model.

  • Application layer examples:
    • HTTP sessions, which allow associating information with individual visitors
    • A telnet remote login session
  • Session layer example:
    • A Session Initiation Protocol (SIP) based Internet phone call
  • Transport layer example:
    • A TCP session, which is synonymous to a TCP virtual circuit, a TCP connection, or an established TCP socket.

(“Session (Computer Science)” 2023)

Bibliography

“Session (Computer Science).” 2023. Wikipedia, February. https://en.wikipedia.org/w/index.php?title=Session_(computer_science)&oldid=1141927834.