kill previous session if the same user logged in again wordpress
-
Any option to destroy all other user session after login a user. i fount an option for destroying sessions as
// get all sessions for user with ID $user_id $sessions = WP_Session_Tokens::get_instance( $user->ID ); // we have got the sessions, destroy them all! $sessions->destroy_all();
it can use on authenticating a user, but i am using social login plugin for authenticating using social media, so need to hack the plugin for achieving the same. so let me know any option to destroy the session on or after “wp_login” action.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘kill previous session if the same user logged in again wordpress’ is closed to new replies.