Main menu
Definition

Cookie

A cookie is a small piece of data that a web server may leave on a user's web browser and retrieve during a future browsing session to identify the user. Learn how cookies work, the main types, and how to keep them from being abused.

DTDevolutions Team·November 12, 2026·2 min read

Session cookies vs. persistent and third-party cookies

A session cookie is deleted when the browser closes. A persistent cookie stays until its expiry date. First-party cookies are set by the site the user is visiting; third-party cookies are set by other domains embedded in the page, often for advertising or analytics, and are increasingly blocked by browsers.

Frequently asked questions

What is a cookie?

A cookie is a small piece of data that a web server may leave on a user's web browser, which can be retrieved during a future browsing session to identify the user.

Are cookies dangerous?

Cookies are not programs and cannot run code. The risk is that a stolen session cookie can let someone impersonate a signed-in user, so sites must protect them carefully.

What is session hijacking?

Session hijacking is taking over a user's active session, often by stealing their session cookie, so the attacker is treated as that user without needing their password.

Sign in securely as you browse

Surface vault credentials in the browser as you browse and work online.

Explore Devolutions Password Manager

Related terms

Hypertext Transfer Protocol (HTTP)

Hypertext Transfer Protocol (HTTP) is a protocol that lets users request hypertext documents from a server, and lets the server answer those requests.

Read now →

Session

A session is a temporary connection between two computers or systems wherein they exchange information.

Read now →

HTTPS

HTTPS is HTTP encrypted with the SSL/TLS protocol to ensure the secure transfer of data over a network.

Read now →