You are on a bus from Chattogram to Dhaka, choosing books for your exam preparation on an online bookshop. You add three to the cart, the bus enters a tunnel, the signal drops, and when the page reloads the cart still holds three books. At the next stop you switch to bKash to pay, come back, and the shop still knows who you are. The next morning you open the site on the same phone and it greets you in Bangla, the way you left it. An hour later, on a news site that has nothing to do with books, an advertisement shows you the very book you looked at.
The HTTP chapter told you that HTTP forgets everything between two requests. So who remembered the cart, the login, the language and that advertisement? The honest answer is "different people". The browser remembered some of it, the server remembered some, and a few things travelled inside the page itself. Each place has a name (cookie, session, hidden field, localStorage, token), and each has its own rules about who can read it, how long it lives and what it costs. Exams ask about almost all of them: what a cookie is, how a cookie differs from a session, what localStorage and sessionStorage are.
By the end of this chapter you will read a Set-Cookie header attribute by attribute and say exactly which requests will carry that cookie. You will build a login with a server-side session and watch the bytes it exchanges. You will know where a browser may keep data, and which of those places the server ever sees. You will decode a JSON Web Token by hand and see why it can be read by anyone but edited by no one. And for any piece of state, such as a cart, a theme or a login, you will be able to say where it belongs and why.