WP_User_Meta_Session_Tokens::update_session( string $verifier, array $session = null )

Update a session by its verifier.


Parameters

$verifier

(Required) Verifier of the session to update.

$session

(Optional) Session. Omitting this argument destroys the session.

Default value: null


Source

File: wp-includes/class-wp-user-meta-session-tokens.php

	protected function update_session( $verifier, $session = null ) {
		$sessions = $this->get_sessions();

		if ( $session ) {
			$sessions[ $verifier ] = $session;
		} else {
			unset( $sessions[ $verifier ] );
		}

		$this->update_sessions( $sessions );
	}


Changelog

Changelog
Version Description
WP-4.0.0 Introduced.