Terminology Index

Glossary

1801 terms

Open concept maps

Showing 449-480 of 1801 terms

C
32

Cookies

Small pieces of data a website stores in the browser and sends back on each request, commonly used to maintain sessions and remember state. Because session cookies can authenticate a user, protecting them is central to web security.

Cookies let stateless HTTP remember things between requests, most importantly a session identifier that keeps a user logged in. That also makes them a target: if an attacker steals or forges a session cookie, they can impersonate the user. Security flags, HttpOnly to block script access, Secure to require HTTPS, and SameSite to limit cross-site sending, are how cookies are protected against theft and cross-site attacks.

Introduced in: Defensive Web Fundamentals

Examples

  • A session cookie keeping a user logged in across page requests.
  • Setting HttpOnly so scripts cannot read a session cookie.
  • Using SameSite to stop a cookie from being sent on cross-site requests.

No related terms linked yet.