WooCommerce sets 3 cookies on websites that load its scripts. Below is the full list with purpose, expiry, and whether each one needs GDPR / ePrivacy consent.
woocommerce_cart_hashEssentialExpires: SessionWooCommerce cart-hash cookie. Indicates when the cart contents change so the front-end can reload cart fragments.
woocommerce_items_in_cartEssentialExpires: SessionWooCommerce cart-items counter. Tracks the number of items currently in the cart.
wp_woocommerce_session_<hash>EssentialExpires: 2 daysWooCommerce session cookie. Holds a unique code for the customer so cart and order data can be retrieved from the database.