Zitadel PHP Client 1.3.6 Help

Terminate a session

Here you will learn, how to terminate a session.

First, we have to initialize the class and set the Session ID and Session Token.

use ZitadelPhpClient\Session\Terminate; $terminate_session = new Terminate($settings); $terminate_session->setSessionId("123456789"); $terminate_session->setSessionToken("ABCDEFG");

You get the session ID and session Token after creating a new session.

After that, we can terminate the Session.

$terminate_session->terminate();
Last modified: 07 April 2024