The protocol used for exchanging files on the Web is stateless, but maintaining state is essential for most websites. To maintain state, one option that Web developers have is to use cookies. This paper provides a technical background and real-world examples to help you understand how cookies work and how to test systems that employ cookies. The website is used as a real-world example to demonstrate cookie testing techniques.