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.
Sorry, your session has expired. Return to shopyour session has expiredcart empty after adding product 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
- Exclude cart, checkout and my-account from all caching
- Bypass cache when woocommerce_items_in_cart cookie is set
- Keep one canonical domain
Detailed fix by platform
Nginx
if ($http_cookie ~* "woocommerce_items_in_cart|wp_woocommerce_session_") { set $skip_cache 1; }
How to diagnose
- Cache — Checkout cached? (response headers)
- Cookies — Set and returned?
- 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:
Similar errors
Most viewed in WordPress
- Critical error WordPress: There Has Been a Critical Error on This Website
- Installation failed: Could not create directory WordPress: Installation failed: Could not create directory (plugin/theme install or update)
- Call to undefined function create_function() WordPress on PHP 8: Fatal error: Uncaught Error: Call to undefined function create_function() / each()
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 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.
Report a correction or suggest an improvement
Last updated 15 Oct 2026