Support » Developing with WordPress » Is there any way to duplicate an user’s session.

Viewing 1 replies (of 1 total)
  • Here are the steps you can follow:

    1. Add unique md5 value in user meta

    2. Create a link https://example.com/?login_hash=MD5_VALUE

    3. Share the above login link to user

    4. Add code in functions.php to identify the $user_id using the “login_hash” from query string

    5. Pass the user id in this function wp_set_auth_cookie($user_id); to login

    • This reply was modified 3 weeks, 6 days ago by softound.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.