Removing WooCommerce Session data

WooCommerce keeps track of user sessions and baskets in the woocommerce_sessions table, and if these can quickly fill up your database, particularly if you are subject to bots visiting your website.

The simple solution to this problem is to remove all sessions using the WooCommerce tool.

To Expire all Sessions

  • Navigate to WooCommerce > Status
  • Select the 'Tools' tab
  • Click the "Clear Customer Sessions" button
  • Note that this will end the sessions and empty all carts, including users who are currently on the site.
    Article published 19th March 2020
    Last modified 02nd November 2023

    Loading