hint about openid timeouts
[indieauth-openid.git] / www / index.php
index 3a32eea7d9e10d7e781d77e6a9734fd26a43db4d..2e6b4c8c4bb0671977816a67320e415994146020 100644 (file)
@@ -201,6 +201,11 @@ if ($_SERVER['REQUEST_METHOD'] == 'GET') {
 
     try {
         $o = new \OpenID_RelyingParty($returnTo, $realm, $me);
+        //if you get timeouts (errors like
+        // OpenID error: Request timed out after 3 second(s)
+        //) then uncomment the following line which disables
+        // all timeouts:
+        //$o->setRequestOptions(array('follow_redirects' => true));
         $authRequest = $o->prepare();
         $url = $authRequest->getAuthorizeURL();
         header("Location: $url");