Classes/Flowpack/SingleSignOn/Server/Domain/Model/SsoClient.php
public function destroySession(SsoServer $ssoServer, $sessionId) {
		$signedRequest = $this->buildDestroySessionRequest($ssoServer, $sessionId);

		$response = $this->requestEngine->sendRequest($signedRequest);

		if ($response->getStatusCode() === 404 && $response->getHeader('Content-Type') === 'application/json') {
			$data = json_decode($response->getContent(), TRUE);
			if (is_array($data) && isset($data['error']) && $data['error'] === 'SessionNotFound') {
				return;
			}
		}

		if ($response->getStatusCode() !== 200) {
			throw new Exception('Unexpected status code for destroy session when calling "' . (string)$signedRequest->getUri() . '": "' . $response->getStatus() . '"', 1354132939);
		}
	}
public function destroySession(SsoServer $ssoServer, $sessionId) {
		$signedRequest = $this->buildDestroySessionRequest($ssoServer, $sessionId);

		$response = $this->requestEngine->sendRequest($signedRequest);

		if ($response->getStatusCode() === 404 && $response->getHeader('Content-Type') === 'application/json') {
			$data = json_decode($response->getContent(), TRUE);
			if (is_array($data) && isset($data['error']) && $data['error'] === 'SessionNotFound') {
				return;
			}
		}

		if ($response->getStatusCode() !== 200) {
			throw new Exception('Unexpected status code for destroy session when calling "' . (string)$signedRequest->getUri() . '": "' . $response->getStatus() . '"', 1354132939);
		}
	}
public function destroySession ( SsoServer $ ssoServer , $ sessionId ) { $ signedRequest = $ this -> buildDestroySessionRequest ( $ ssoServer , $ sessionId ) ; $ response = $ this -> requestEngine -> sendRequest ( $ signedRequest ) ; if ( $ response -> getStatusCode ( ) === 404 && $ response -> getHeader ( 'Content-Type' ) === 'application/json' ) { $ data = json_decode ( $ response -> getContent ( ) , TRUE ) ; if ( is_array ( $ data ) && isset ( $ data [ 'error' ] ) && $ data [ 'error' ] === 'SessionNotFound' ) { return ; } } if ( $ response -> getStatusCode ( ) !== 200 ) { throw new Exception ( 'Unexpected status code for destroy session when calling "' . ( string ) $ signedRequest -> getUri ( ) . '": "' . $ response -> getStatus ( ) . '"' , 1354132939 ) ; } }
Destroy a client session with the given session id

The client expects a local session id and not a global session id
from the SSO server.

TODO Move code to SimpleSsoClientNotififer and only leave buildDestroySessionRequest in client

@param \Flowpack\SingleSignOn\Server\Domain\Model\SsoServer $ssoServer
@param string $sessionId
@return void
Destroy a client session with the given session id