Skip to main content

Cookies

Learn Cookies (Request Handling, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes A cookie is a small name-value pair that the server sets with the Set-Cookie response header; the browser returns it in the Cookie request header on later requests. Purpose : keep state over stateless HTTP, such as a session id, a language choice or a remember-me token. Attributes control behaviour: Path , Max-Age , HttpOnly , Secure and SameSite .

More lessons in Request Handling