XeroOAuth-PHP icon indicating copy to clipboard operation
XeroOAuth-PHP copied to clipboard

Undefined index: session_handle

Open Depodra opened this issue 7 years ago • 7 comments

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

Depodra avatar May 05 '17 04:05 Depodra

Same issue. Did you resolve it ?

alan1o avatar Aug 25 '17 12:08 alan1o

same problem

developer434 avatar Sep 27 '17 03:09 developer434

I'm also having the same issue

michaeldistel avatar Oct 22 '17 09:10 michaeldistel

same issue haven't solve yet

abrarkhalil avatar Jan 11 '18 07:01 abrarkhalil

I resolved it by just checking if it was set. if (isset($_SESSION['session_handle'])) $response['oauth_session_handle'] = $_SESSION['session_handle'];

alan1o avatar Jan 11 '18 09:01 alan1o

solved by replacing if (isset($_SESSION['access_token'])) By if (isset($_SESSION['session_handle'])

abrarkhalil avatar Jan 11 '18 09:01 abrarkhalil

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/

ajitpawarink avatar Feb 02 '18 15:02 ajitpawarink