Summery Summery
Updates a session based on its verifier (token hash).
Syntax Syntax
Parameters Parameters
- $verifier
-
(Required) Verifier for the session to update.
- $session
-
(Optional) Session. Omitting this argument destroys the session.
Default value: null
Source 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 ); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |