Session Cookies
Session cookies are temporary files a website stores in a visitor's browser that last only for a single browsing session and are deleted when that session ends. They are commonly used to keep track of a user's activity in real time, such as items in a shopping cart or a logged-in state, while the user moves through a site. Whether they require consent depends on their purpose and the applicable legal regime, not simply on their temporary nature.
A session cookie is a cookie set without a Max-Age or Expires attribute, meaning it is not persisted to a fixed expiry date and is deleted when the browser determines the current session has ended (the exact timing is browser-defined). Functionally, session cookies support session management, maintaining state across HTTP requests for purposes such as authentication tokens, cart contents, and user preferences during a single visit. From a compliance standpoint, the consent status of a session cookie is determined by its purpose rather than its lifespan: under the EU ePrivacy rules, cookies strictly necessary for a service the user has requested (for example, maintaining a login session or cart) are generally exempt from prior consent, whereas session cookies used for analytics, advertising, or other non-essential purposes typically require prior consent. Requirements differ across jurisdictions such as the EU, the UK, and individual US states, so the classification and consent treatment of any given session cookie should be assessed against the applicable framework and its actual function.
Why it matters
Session cookies sit at the heart of everyday web functionality, keeping a user logged in, preserving the contents of a shopping cart, and maintaining state as a visitor moves through a site during a single visit. Because they are temporary and deleted when the browsing session ends, they are sometimes assumed to be low-risk or automatically exempt from consent requirements. That assumption can create compliance gaps, because under EU ePrivacy rules the consent status of a cookie is generally determined by its purpose rather than its lifespan.
Who it's relevant to
Inside Session Cookies
Common questions
Answers to the questions practitioners most commonly ask about Session Cookies.