Automattic\WooCommerce\StoreApi

SessionHandler::__construct()publicWC 1.0

Constructor for the session class.

Method of the class: SessionHandler{}

No Hooks.

Return

null. Nothing (null).

Usage

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

SessionHandler::__construct() code WC 9.3.1

public function __construct() {
	$this->token = wc_clean( wp_unslash( $_SERVER['HTTP_CART_TOKEN'] ?? '' ) );
	$this->table = $GLOBALS['wpdb']->prefix . 'woocommerce_sessions';
}