WordPress at Your Fingertips
function is not described

WC_Session_Handler::destroy_session() public WC 1.0

Destroy all session data.

{} It's a method of the class: WC_Session_Handler{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Session_Handler::destroy_session() WC 5.9.0

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