WordPress at Your Fingertips
function is not described

WC_Session_Handler::update_session_timestamp() public WC 1.0

Update the session expiry timestamp.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Session_Handler = new WC_Session_Handler();
$WC_Session_Handler->update_session_timestamp( $customer_id, $timestamp );
$customer_id(string) (required)
Customer ID.
$timestamp(int) (required)
Timestamp to expire the cookie.

Code of WC_Session_Handler::update_session_timestamp() WC 5.9.0

public function update_session_timestamp( $customer_id, $timestamp ) {
	global $wpdb;

	$wpdb->update(
		$this->_table,
		array(
			'session_expiry' => $timestamp,
		),
		array(
			'session_key' => $customer_id,
		),
		array(
			'%d',
		)
	);
}