WC_Session_Handler::use_secure_cookie()protectedWC 3.6.0

Should the session cookie be secure?

Method of the class: WC_Session_Handler{}

Hooks from the method

Return

true|false.

Usage

// protected - for code of main (parent) or child class
$result = $this->use_secure_cookie();

Changelog

Since 3.6.0 Introduced.

WC_Session_Handler::use_secure_cookie() code WC 8.7.0

protected function use_secure_cookie() {
	return apply_filters( 'wc_session_use_secure_cookie', wc_site_is_https() && is_ssl() );
}