Automattic\WooCommerce\StoreApi

SessionHandler::destroy_sessionpublicWC 1.0

Destroy all session data.

Method of the class: SessionHandler{}

No Hooks.

Returns

null. Nothing (null).

Usage

$SessionHandler = new SessionHandler();
$SessionHandler->destroy_session();

SessionHandler::destroy_session() code WC 10.8.1

public function destroy_session() {
	$this->delete_session( $this->get_customer_id() );
	$this->forget_session();
}