Automattic\WooCommerce\StoreApi

SessionHandler::forget_sessionpublicWC 1.0

Forget all session data without destroying persisted storage.

Method of the class: SessionHandler{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

SessionHandler::forget_session() code WC 10.8.1

public function forget_session() {
	$this->_data        = array();
	$this->_dirty       = false;
	$this->_customer_id = null;
}