Sorry, your session has expired WordPress Origin: Application & API OSI layer 5 · Session Last updated 15 Oct 2026

WooCommerce: Sorry, your session has expired. Return to shop

WooCommerce lost the customer’s cart session — usually because checkout/cart pages are cached or cookies are blocked/stripped.

Exact message you may see Sorry, your session has expired. Return to shopyour session has expiredcart empty after adding product
Seen on: WordPress

Meaning

Cart, checkout and My Account must never be cached. CDNs/page caches that strip cookies or serve cached pages, and session cleanup issues, cause empty carts and this message.

Common causes

  • Cart/checkout pages cached (page cache/CDN)
  • CDN stripping woocommerce cookies
  • Mixed domain (www/non-www) cookies
  • Session table cleaned prematurely

⚡ Quick fix

  1. Exclude cart, checkout and my-account from all caching
  2. Bypass cache when woocommerce_items_in_cart cookie is set
  3. Keep one canonical domain

Detailed fix by platform

Nginx

  1. if ($http_cookie ~* "woocommerce_items_in_cart|wp_woocommerce_session_") { set $skip_cache 1; }

How to diagnose

  1. Cache — Checkout cached? (response headers)
  2. Cookies — Set and returned?
  3. Domain — Consistent?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Application & API. Errors that are often confused with or caused by this one (click to open):

1200 — Cloudflare Error 1200: Cache connection limit (Cloudflare)1200304 — HTTP 304 Not Modified (HTTP)304412 — HTTP 412 Precondition Failed (HTTP)412cf-cache-status: DYNAMIC — Cloudflare not caching: cf-cache-status DYNAMIC / BYPASS / MISS every time (Cloudflare)cf-cache-status: DYNA…Cookies are blocked — WordPress login: Error: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress. (WordPress)Cookies are blockedError establishing a Redis connection — WordPress: Error establishing a Redis connection (object cache) (WordPress)Error establishing a …There was an error processing your order — WooCommerce: There was an error processing your order. Please check for any charges in your payment method / Error processing checkout. Please try again. (WordPress)There was an error pr…Sorry, yo…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.