{"id":13545,"date":"2023-03-29T15:20:00","date_gmt":"2023-03-29T22:20:00","guid":{"rendered":"https:\/\/www.daveshrein.com\/?p=13545"},"modified":"2023-04-05T16:50:28","modified_gmt":"2023-04-05T23:50:28","slug":"cartflows-cloudways-session-expired","status":"publish","type":"post","link":"https:\/\/www.daveshrein.com\/cartflows-cloudways-session-expired\/","title":{"rendered":"Fixing the Cartflows “Sorry, Your Sessions Has Expired” Message"},"content":{"rendered":"\n

Cartflows<\/a> is an incredibly shopping cart plugin for Woocommerce on WordPress until you get the message, “Sorry, your session has expired.” It is at this point you begin searching the internet for answers, Cartflows helpdocs, and (my favorite) the Cartflows Facebook Group.<\/p>\n\n\n

\n
\"Sorry,
When you get the “Sorry, your session has expired,” message in Cartflows… it is a caching issue.<\/em><\/figcaption><\/figure><\/div>\n\n\n

You’ll discover that the culprit for this error message is actually the caching or varnish employed by your web server and or a plugin you’ve installed.<\/p>\n\n\n\n

Cartflows has provided a great doc for notifying you what cookies you need to exclude from your caching and Woocommerce provides the same insight.<\/p>\n\n\n\n

Cartflows Cookie Exclusions<\/a>
Woocommerce Cookie Exclusions<\/a><\/p>\n\n\n\n

The process for excluding these cookies will vary from hosting provider to hosting provider and caching plugin to caching plugin, but you should be able to find the answers you need by searching for the following query (replacing your host with the name of the hosting company you use or your caching plugin with the name of the caching plugin you use:<\/p>\n\n\n\n

Exclude cookies caching your host<\/span><\/em> or your caching plugin<\/span><\/em><\/p>\n\n\n\n

If you are still unsure how to apply the information you can connect with your hosting support and most quality hosting support companies will have their chat support make the exclusions on your behalf.<\/p>\n\n\n\n

Cartflows Caching Problems with Cloudways<\/h2>\n\n\n\n

Unfortunately, if you use Cloudways<\/a> you’ll continually come up short applying all of the fixes found in the Cartflows documentation or general web searches. If you search the Cartflows Facebook group you’ll also find that there is no one answer to fixing the “Sorry, your session has expired” message when using Cloudways \u2014 other than to turn off caching altogether.<\/p>\n\n\n\n

That isn’t a quality solution and the sacrifices you make in speed are too great to just eliminate caching. <\/p>\n\n\n\n

After spending more time on the Cartflows Facebook Group I have finally discovered what I think represents the proper steps to take in order to exclude all cookies and URLs from caching, preventing the frustrating error session notification from appearing. <\/p>\n\n\n\n

If you’re using Cloudways, follow the steps below and it should<\/em> take care of the problem for you, too.<\/p>\n\n\n\n

Exclude the Cartflows Cookies from Your Application Varnish<\/h2>\n\n\n\n

Log into Cloudways account and load the Application in question. Once the application shows up, click the Application Settings option from the left sidebar menu. When that tab loads, click on the VARNISH SETTINGS tab found next to General and PHP FPM SETTINGS. You can see this what the screen should look like from the screenshot below.<\/p>\n\n\n

\n
\"\"