WPDev.one
Core Class

WP_User_Meta_Session_Tokens

class WP_User_Meta_Session_Tokens // Constructor: function Object() { [native code] }

Meta-based user sessions token manager.

Methods 8 methods

Method / Return Description
get_sessions()
array

Retrieves all sessions of the user.

prepare_session()
array

Converts an expiration to an array of session information.

Parameters: $session: mixed
get_session()
(array

Retrieves a session based on its verifier (token hash).

Parameters: $verifier: mixed
update_session()
void

Updates a session based on its verifier (token hash).

Parameters: $verifier: mixed, $session: mixed
update_sessions()
void

Updates the user's sessions in the usermeta table.

Parameters: $sessions: mixed
destroy_other_sessions()
void

Destroys all sessions for this user, except the single session with the given verifier.

Parameters: $verifier: mixed
destroy_all_sessions()
void

Destroys all session tokens for the user.

drop_sessions()
void

Destroys all sessions for all users.

Class Information

Since Version
4.0.0
Source File
wp-includes/class-wp-user-meta-session-tokens.php
Advertisement