wp_destroy_other_sessions

Advertisement

Summery Summery

Remove all but the current session token for the current user for the database.

Syntax Syntax

wp_destroy_other_sessions()

Source Source

File: wp-includes/user.php

 * Remove the current session token from the database.
 *
 * @since 4.0.0
 */
function wp_destroy_current_session() {
	$token = wp_get_session_token();
	if ( $token ) {

Advertisement

Changelog Changelog

Changelog
Version Description
4.0.0 Introduced.

Advertisement

Leave a Reply