WordPress at a glance
function is not described

WP_User_Meta_Session_Tokens::update_sessions() WP 4.0.0

Updates the user's sessions in the usermeta table.

This is a method of the class: WP_User_Meta_Session_Tokens

No Hooks.

Return

Null. Nothing.

Usage

$WP_User_Meta_Session_Tokens = new WP_User_Meta_Session_Tokens();
$var = $WP_User_Meta_Session_Tokens->update_sessions( $sessions );
$sessions(array) (required)
Sessions.

Changelog

Since 4.0.0 Introduced.

Code of WP User Meta Session Tokens::update sessions: wp-includes/class-wp-user-meta-session-tokens.php WP 5.2.2

<?php
protected function update_sessions( $sessions ) {
	if ( $sessions ) {
		update_user_meta( $this->user_id, 'session_tokens', $sessions );
	} else {
		delete_user_meta( $this->user_id, 'session_tokens' );
	}
}