user-switching.php
public static function forget_woocommerce_session( WooCommerce $wc ) {
		if ( ! property_exists( $wc, 'session' ) ) {
			return false;
		}

		if ( ! method_exists( $wc->session, 'forget_session' ) ) {
			return false;
		}

		$wc->session->forget_session();
	}
public static function forget_woocommerce_session( WooCommerce $wc ) {
		if ( ! property_exists( $wc, 'session' ) ) {
			return false;
		}

		if ( ! method_exists( $wc->session, 'forget_session' ) ) {
			return false;
		}

		$wc->session->forget_session();
	}
public static function forget_woocommerce_session ( WooCommerce $ wc ) { if ( ! property_exists ( $ wc , 'session' ) ) { return false ; } if ( ! method_exists ( $ wc -> session , 'forget_session' ) ) { return false ; } $ wc -> session -> forget_session ( ) ; }
Instructs WooCommerce to forget the session for the current user, without deleting it.

@param WooCommerce $wc The WooCommerce instance.
Instructs WooCommerce to forget the session for the current user without deleting it .