Skip to content
Strictly NecessaryNo consent needed

What is the wp_woocommerce_session_* Cookie?

Set by WooCommerce (Automattic / WooCommerce). Expires after 2 days.

Purpose

Contains a unique code for each customer so that the shopping cart contents can be retrieved from the database.

Session cookie required for cart and checkout to function. No consent needed.

Cookie Details

Cookie Namewp_woocommerce_session_*
ServiceWooCommerce
ProviderAutomattic / WooCommerce
CategoryStrictly Necessary
Duration2 days
Consent RequiredNo — strictly necessary

Category: Strictly Necessary

Strictly necessary cookies are essential for the website to function and cannot be switched off. They are set only in response to actions made by you — such as logging in or filling forms. No consent is required.

GDPR Requirements

The wp_woocommerce_session_* cookie is strictly necessary and does not require user consent under GDPR and the ePrivacy Directive. It may be set when the user first visits your site.

However, you must still disclose this cookie in your cookie policy, explaining what it does and why it is necessary.

How to Handle This Cookie

  1. It can load freely — no need to block WooCommerce behind a consent gate for this specific cookie.
  2. Disclose it — list it in your cookie policy explaining it is strictly necessary for woocommerce functionality.
  3. Don't add a checkbox for it — strictly necessary cookies should not be listed as toggleable in your consent UI.

Other WooCommerce Cookies

CookieCategoryDuration
woocommerce_cart_hashStrictly NecessarySession
woocommerce_items_in_cartStrictly NecessarySession
woocommerce_recently_viewedFunctionalSession

Is this cookie on your website?

Scan your website to see every cookie it sets, whether they're blocked before consent, and get a full GDPR compliance report.

Scan your website free →