Whoops timeouts after payment
Error when you return to your cart after offsite payment
Situation: You are getting the message “Whoops! Your Session has Expired” after completing offsite payment.
This is a result of the samesite cookie rule that modern browsers are enforcing. If you want to force browsers into lower-security mode by disabling the samesite cookie rules they’re programmed to follow, then you can do the following:
Create a file named
includes/extra_configures/samesite_cookie.php containing the following:
<?php // ----- // Samesite cookie needs to be 'none' when doing offsite payment gateway redirects // define('COOKIE_SAMESITE', 'none');
Still have questions? Use the Search box in the upper right, or try the full list of FAQs. If you can't find it there, head over to the Zen Cart support forum and ask there in the appropriate subforum. In your post, please include your Zen Cart and PHP versions, and a link to your site.
Is there an error or omission on this page? Please post to General Questions on the support forum. Or, if you'd like to open a pull request, just review the guidelines and get started. You can even PR right here.
Last modified April 28, 2021 by Scott C Wilson (fbf0192).