Support » Plugin: WooCommerce » Clear session changes

  • Resolved Peter Petrov

    (@ppetrov2c)


    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 🙂

    • This topic was modified 1 year, 6 months ago by  Peter Petrov. Reason: add exact location of changes
    • This topic was modified 1 year, 6 months ago by  Peter Petrov. Reason: describe in better detail value of City after update
  • The topic ‘Clear session changes’ is closed to new replies.