For some reason Shopify’s cart session is not tied to a customer login, which causes issues of not being able to clear out sensitive info on the Shoping cart session such as applied gift card code, which allows other people to use the gift card code applied when the user was logged in, causing a serious security issue.
Is there any way to completely log out of a user session when a user logs out? My main use case is to prevent the gift card code applied when the user logged in being used by others, and there doesn’t seem to be a way to do that. I already tried /cart/clear.js but the gift card code still stays on checkout even after log out!