Clear session changes
-
Hey guys ??
I’m trying to clear a customer session (did that using the destroy_session method
WC()->session->destroy_session()
), but the changes made during the checkout process aren’t cleared. What I mean during the checkout process is, while on the checkout page, if a user updates the City for example, but gets an error (say they forgot to enter their name), and after clearing the session, the City be populated with the changed version.I checked the customer session, and there’s a
changes
index, but that’s protected and there’s no way to clear it.Is there any reason why this isn’t cleared as well, or am I missing something?
Thank you ??
- The topic ‘Clear session changes’ is closed to new replies.