Need help? Book our fixed price WordPress Support service.

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.

Note that this will end the sessions and empty all carts, including users who are currently on the site.

  • To expire all sessions,
  • Navigate to WooCommerce > Status
  • Select the ‘Tools’ tab
  • Click the “Clear Customer Sessions” button

Was this article helpful?

No 0

About the Author

Christian Mayne is a full time WordPress developer and consultant based in the UK. He runs a UK based WordPress development agency with clients all over the World. As well as WordPress development, Christian has been teaching WordPress use and development since 2014 in classroom settings and online.

LEAVE COMMENT