🎁 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

Canonical URL
An HTML element that tells search engines which URL is the preferred version of a page when duplicate or similar content exists at multiple URLs.
Server-Sent Events (SSE)
A web technology enabling servers to push real-time updates to browsers over a single HTTP connection, simpler than WebSockets.
JSON
JavaScript Object Notation — a lightweight data interchange format that is easy for humans to read and machines to parse.
CSS Flexbox
A CSS layout model that provides efficient arrangement of items within a container, handling alignment, distribution, and spacing.
SSR (Server-Side Rendering)
A technique where web pages are rendered on the server and sent as complete HTML to the browser, improving SEO and initial load time.
OAuth Scope
A mechanism in OAuth that limits an application's access to a user's account to specific resources or actions.
View All Web Development Terms →