🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Web Development Beginner

What is Cookie?

A small piece of data stored in the browser by a website to remember user preferences, login state, or tracking information.

Cookies are key-value pairs sent by the server and stored by the browser. They are automatically included in subsequent requests to the same domain. Uses include session management, personalization, and analytics tracking.

Security attributes include HttpOnly (prevents JavaScript access), Secure (HTTPS only), SameSite (prevents CSRF), Domain, Path, and Expires/Max-Age. GDPR requires user consent for non-essential cookies.

Related Terms

Cross-Origin Resource Sharing (CORS)
An HTTP mechanism that allows web pages to request resources from a different domain than the one serving the page.
WebAssembly (Wasm)
A binary instruction format that enables near-native performance execution of code in web browsers alongside JavaScript.
SPA (Single Page Application)
A web application that loads a single HTML page and dynamically updates content without full page reloads.
Brotli Compression
A modern compression algorithm developed by Google that achieves better compression ratios than Gzip for web content delivery.
Progressive Web App (PWA)
A web application that uses modern web capabilities to deliver app-like experiences with offline support and push notifications.
WebSocket
A communication protocol that enables full-duplex, real-time data exchange between a browser and server over a single connection.
View All Web Development Terms →