Automattic\WooCommerce\StoreApi

SessionHandler::__constructpublicWC 1.0

Constructor for the session class.

Method of the class: SessionHandler{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

SessionHandler::__construct() code WC 11.0.1

public function __construct() {
	$this->token = CartTokenUtils::get_request_cart_token();
	$this->table = $GLOBALS['wpdb']->prefix . 'woocommerce_sessions';
}