beginAuth($openid); // Handle failure status return values. if ($status != Auth_OpenID_SUCCESS) { $error = "Authentication error."; include 'index.php'; exit(0); } // Redirect the user to the OpenID server for authentication. Store // the token for this authentication so we can verify the response. $_SESSION['openid_token'] = $info->token; $redirect_url = @$consumer->constructRedirect($info, $process_url, $trust_root); header("Location: ".$redirect_url); ?>