Can't logout REST API

I login user via using REST API and now i try to logout…

Code below doesn’t work fine for me, because $url=“<user-token>”
return true all time. When I change user-token to other it return false, so it works fine.

Any advices?

$url = "";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HTTPGET, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'application-id: <app_id>',
'secret-key: &lt;rest_key&gt;',
'application-type: REST',
'user-token: &lt;user_token&gt;'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

//check login

$url = ";user-token&gt;";
$ch = curl_init( $url );
curl_setopt($ch, CURLOPT_HTTPGET, 1);
curl_setopt( $ch, CURLOPT_HTTPHEADER, array('application-id: <app_id>','secret-key: &lt;rest-key&gt;','application-type: REST'));
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
$result = curl_exec($ch);
echo $result


It looks like a bug. Internal task created BKNDLSS-12688.


We updated production server. Could you try this use case again?

It seems it works fine now.