subdomain
A name under a larger domain, such as app.example.com under example.com.
In more detail
Subdomains are often run by different teams or services. Some cookie settings let a subdomain affect cookies of the parent domain, which is a security risk.
Related terms
- __Host- prefix — A cookie name prefix that the browser only accepts if the cookie is Secure, has Path=/ and names no domain, so subdomains cannot overwrite it.
- cookie — A small named value a server asks a browser to store and send back automatically on later matching requests.
- host name — The name a computer or container calls itself on a network.
Taught in
- Session Architecture: HTTP-Only Cookies vs Tokens — Production Full-Stack Engineering