Automattic\WooCommerce\StoreApi

SessionHandler::forget_session │ public │ WC 1.0

Forget all session data without destroying persisted storage.

Метод класса: SessionHandler{}

Хуков нет.

Возвращает

void. Ничего (null).

Использование

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

Код SessionHandler::forget_session() WC 11.3.0

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