WordPress at Your Fingertips
function is not described

WC_Session_Handler::set_session_expiration() public WC 1.0

Set session expiration.

{} It's a method of the class: WC_Session_Handler{}

Return

null. Nothing.

Usage

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

Code of WC_Session_Handler::set_session_expiration() WC 5.9.0

public function set_session_expiration() {
	$this->_session_expiring   = time() + intval( apply_filters( 'wc_session_expiring', 60 * 60 * 47 ) ); // 47 Hours.
	$this->_session_expiration = time() + intval( apply_filters( 'wc_session_expiration', 60 * 60 * 48 ) ); // 48 Hours.
}