Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How is a flow session linked to an http session?


Asked by Rosalie Page on Dec 11, 2021 HTTP



Note that a flow session is in no way linked to an HTTP session. It just uses the familiar "session" naming convention to denote a stateful object. Returns the flow definition backing this session. Returns the parent flow session in the current flow execution, or null if there is no parent flow session.
Indeed,
HTTP is stateless connection protocol, that is, the server cannot differentiate between different connections of different users. Hence comes cookie, once a client connects first time to a server, the server generates a new session id, which later will be sent to the client as cookie value.
In fact, In client-server protocols, like HTTP, sessions consist of three phases: 1 The client establishes a TCP connection (or the appropriate connection if the transport layer is not TCP). 2 The client sends its request, and waits for the answer. 3 The server processes the request, sending back its answer, providing a status code and appropriate data.
In addition,
As you mentioned, common ways to implement HTTP session tracking include URL rewriting and cookies. Session tracking basically requires that a session ID is maintained across multiple requests to the server. This means that each time a given client makes a request to the server, it passes the same session ID.
Thereof,
Those adapters support session re-use: The session handling is configured on integration flow level for all adapters supporting HTTP session handling as listed above. This means, session re-use is possible for different kind of adapters used towards the same backend in the same integration flow.