true, 'message' => 'fully_logged_in', 'redirect' => $send_to ]; echo(json_encode($data)); }else{ //we have to send the user around :) //load his auth methods. then send the first one. if he auths there he will be send back here and we can send him to the next auth method $username=$_SESSION["username"]; } ?>