Hashes the given session token for storage.
Parameters
$token
stringrequired- Session token to hash.
Source
private function hash_token( $token ) {
return hash( 'sha256', $token );
}
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |
CARVIEW |
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Hashes the given session token for storage.
$token
stringrequiredprivate function hash_token( $token ) {
return hash( 'sha256', $token );
}
Used by | Description |
---|---|
WP_Session_Tokens::get()wp-includes/class-wp-session-tokens.php | Retrieves a user’s session for the given token. |
WP_Session_Tokens::verify()wp-includes/class-wp-session-tokens.php | Validates the given session token for authenticity and validity. |
WP_Session_Tokens::update()wp-includes/class-wp-session-tokens.php | Updates the data for the session with the given token. |
WP_Session_Tokens::destroy()wp-includes/class-wp-session-tokens.php | Destroys the session with the given token. |
WP_Session_Tokens::destroy_others()wp-includes/class-wp-session-tokens.php | Destroys all sessions for this user except the one with the given token (presumably the one in use). |
Version | Description |
---|---|
4.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.