WC_Session_Handler::destroy_sessionpublicWC 1.0

Destroy all session data.

Method of the class: WC_Session_Handler{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

WC_Session_Handler::destroy_session() code WC 10.3.3

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