XeroOAuth-PHP
XeroOAuth-PHP copied to clipboard
Undefined index: session_handle
After authenticating with a public application (after directed to API.XERO.COM for authentication (30m period), I'm receiving: Notice: Undefined index: session_handle in /var/www/html/XeroOAuth-PHP/tests/testRunner.php on line 98
On page: /XeroOAuth-PHP/public.php
Same issue. Did you resolve it ?
same problem
I'm also having the same issue
same issue haven't solve yet
I resolved it by just checking if it was set. if (isset($_SESSION['session_handle'])) $response['oauth_session_handle'] = $_SESSION['session_handle'];
solved by replacing if (isset($_SESSION['access_token'])) By if (isset($_SESSION['session_handle'])
oauth_session_handle only exist in Partner application since it only used to renew token which is not supported by Public application.
Ref: https://community.xero.com/developer/discussion/56369151/