Open this page in the API Guide

ISessionService.TerminateSession Method

Logs off the session with the specified ID.

Namespace:  Dundas.BI.AccountServices
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
bool TerminateSession(
	Guid sessionId
)

Parameters

sessionId
Type: System.Guid
The ID of the session to terminate.

Return Value

Type: Boolean
false if a session with the specified ID was not found; otherwise, true.
Exceptions
ExceptionCondition
ArgumentExceptionsessionId is Empty.
NoPrivilegeException

The specified session is not associated with the caller.

-or-

The caller does not have system administration privileges.

-or-

The specified session is associated with a tenant, but the caller does not have administration privileges for that tenant.

InvalidSessionExceptionThe caller context is not associated with a valid session.
Remarks
This method terminates sessions with a reason code of LoggedOffByAdmin. For that reason, if a user is logging itself out (and not being logged out by an administrator), TerminateCurrentSession() should be used instead.
See Also