Step 1 / 11Setup
Ana logs in
Ana sends her password to Server A. The server checks it and creates a session: a small record in its own memory saying "this is Ana, she is logged in".
The server sends back a session id in a cookie. On the next request, Ana shows the id and the server finds her record. With one server, this works perfectly.
Good to know
"State" means data a server remembers between requests. A server with no such memory is stateless.
“At first the session lives in the memory of the server that handled the login.”
←→ step·R restart·Space pause