Automattic\WooCommerce\StoreApi

SessionHandler::delete_sessionpublicWC 1.0

Delete the session from the database.

Method of the class: SessionHandler{}

No Hooks.

Returns

null. Nothing (null).

Usage

$SessionHandler = new SessionHandler();
$SessionHandler->delete_session( $customer_id );
$customer_id(string) (required)
Customer session ID.

SessionHandler::delete_session() code WC 10.7.0

public function delete_session( $customer_id ) {
	if ( ! $customer_id ) {
		return;
	}
	$GLOBALS['wpdb']->delete( $this->table, array( 'session_key' => $customer_id ) );
}