WordPress: WordPress Auto login by username
Create a autologin.php page with following script and upload to word press root.
ini_set('display_errors', 0); if(isset($_GET["username"]) && $_GET["username"]!="") { require( dirname(__FILE__) . '/wp-load.php' ); $user_login=$_GET["username"]; $user = get_userdatabylogin($user_login); $user_id = $user->ID; wp_set_current_user($user_id, $user_login); wp_set_auth_cookie($user_id); do_action('wp_login', $user_login); $current_user = wp_get_current_user(); header("Location: http://www.yoursite.com/wp-admin/"); exit; //print_r($current_user); }