Zitadel PHP API

Terminate
in package

Terminate a session.

Table of Contents

Properties

$sessionId  : string
$sessionToken  : string
$settings  : array<string|int, mixed>

Methods

__construct()  : mixed
Initialize the Session Termination
setSessionId()  : void
Set the session id
setSessionToken()  : void
Set the session token
terminate()  : void
Terminate the session

Properties

$settings

private array<string|int, mixed> $settings

Methods

__construct()

Initialize the Session Termination

public __construct(mixed $settings) : mixed
Parameters
$settings : mixed

array The settings array

setSessionId()

Set the session id

public setSessionId(mixed $sessionId) : void
Parameters
$sessionId : mixed

string ID of the session to terminate

setSessionToken()

Set the session token

public setSessionToken(string $sessionToken) : void
Parameters
$sessionToken : string

The current token of the session, returned to a create or update request.

terminate()

Terminate the session

public terminate() : void
Tags
throws
Exception

Returns an exception, if the communication with Zitadel fails


        
On this page

Search results