WooCommerce - Sessions expiring causing cart to be empty on WooCommerce

From Hostek.com Wiki
Jump to: navigation, search


Problem - WooCommerce cart appears empty after a few minutes

Occasionally with WooCommerce you may notice your cart appears empty after a few minutes when it shouldn't be.


Resolution - WooCommerce cart appears empty after a few minutes

In researching this problem, we have found the following solution.

In the MySQL database, for the wp_woocommerce_sessions table, the session_id column needs the "Auto-Increment" (A_I) enabled.