WC_Session_Handler::__constructpublicWC 1.0

Constructor for the session class.

Method of the class: WC_Session_Handler{}

Hooks from the method

Returns

null. Nothing (null).

Usage

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

WC_Session_Handler::__construct() code WC 10.3.3

public function __construct() {
	/**
	 * Filter the cookie name.
	 *
	 * @since 3.6.0
	 *
	 * @param string $cookie Cookie name.
	 */
	$this->_cookie = (string) apply_filters( 'woocommerce_cookie', 'wp_woocommerce_session_' . COOKIEHASH );
	$this->_table  = $GLOBALS['wpdb']->prefix . 'woocommerce_sessions';
	$this->set_session_expiration();
}