CoreBOSBB
Logging out of webservice: Authentication required - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Development (https://discussions.corebos.org/forumdisplay.php?fid=18)
+--- Forum: coreBOS Development (https://discussions.corebos.org/forumdisplay.php?fid=4)
+--- Thread: Logging out of webservice: Authentication required (/showthread.php?tid=510)



Logging out of webservice: Authentication required - Guido1982 - 12-02-2016

I can succesfully log in to the webservice from a remote app, but so far no luck logging out. I get the following message:

PHP Code:
array(2) { ["success"]=> bool(false) ["error"]=> array(2) { ["code"]=> string(23"AUTHENTICATION_REQUIRED" ["message"]=> string(23"Authentication required" } } 

I'm not sure what I'm missing here..

I found the problem, logout requires the webservice session ID, but since I'm on a new page, I had to store the session ID in the browser session and reset it on the new $client instance.