WC_Session_Handler::update_session_timestamp( string $customer_id, int $timestamp )
Update the session expiry timestamp.
Description Description
Parameters Parameters
- $customer_id
-
(Required) Customer ID.
- $timestamp
-
(Required) Timestamp to expire the cookie.
Source Source
File: includes/class-wc-session-handler.php
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',
)
);
}