Cookie
Definition
A cookie stores small data in the browser and can send it along with appropriate requests.
An HTTP cookie is a small amount of data that a browser can store and transmit with appropriate HTTP requests. Websites use cookies, among other things, for sessions, settings, and tracking. Attributes determine, for example, validity, transmission conditions, and access possibilities.
Simply explained
A cookie is similar to a coat check ticket: with its identifier, a website can recognize a session.
Why it matters in practice
Cookies affect whether login, shopping cart, and certain measurement functions work as intended.
Example from business
Possible example: A shop stores a session ID in a cookie and assigns the corresponding shopping cart server-side.
Limits and pitfalls
- Cookies are not automatically secure storage. Inappropriate validity scopes, missing protection attributes, and unclear purposes can cause risks.
Origin & history
Cookies complement the fundamentally stateless HTTP with recognizable information between multiple requests.
Use in mid-sized companies
- Operations record existing cookies, clarify their purpose, and test durations, protection attributes, and behavior under different consent decisions.
Frequently asked questions
Does a cookie always store personal data?
Not necessarily. Identifiers can be attributable to persons; technical function and data protection assessment must be examined separately.
Sources
- Using HTTP cookies. · MDN contributors (o. J.): Using HTTP cookies.
Editorially reviewed on: