What is Headless Logout
If your customers log in and out on your own website, they will not be automatically logged out of the web checkout when they leave your site.
This can cause confusion—even if they log out of your website, they will still appear logged in when they return to the checkout page.
To fix this, you can trigger a Headless Logout - it tell the checkout to log the customer out too.
When to Use Headless Logout
Use this if:
you have your own login/logout system (not the Ventrata widget)
you already use Headless Login
you use the Membership feature
you want the checkout to reflect when a customer logs out from your system
Without using a headless logout, customers may still appear as logged in on the checkout, even after they have logged out from your site.
How to Trigger Logout
Your developer or web team will need to add one line of code to your website's logout process. This line tells the widget to also log the customer out.
Code snippet:
window.Ventrata.logout()
📒 NOTE
This must be added after the customer is logged out from your own system.
This will:
end the customer's session in the checkout widget
refresh the widget so customers appear logged out