KillSession method

Official Content

Syntax

GAMSessionLog.KillSession(in:GAMSessionToken, out: GAMError Collection) : Boolean

Description

This method receives as a parameter a variable based on GAMSessionToken domain, which identifies the session that is to be killed.

The final status of the killed session is Finished.

It returns true or false depending on the success of the execution, and the errors can be handled using the second parameter of the method which is based on GAMError collection data type.

Example

&Isok = GAMSessionLog.KillSession(&GAMSessionToken, &Errors)
if &isOK
  commit
else
//Process errors
EndIf

Note

As explained before, in order to use all these methods, setting Generate Session Statistics GAMRepository property to Minimum or Detail is required. When the value is Minimum only the information for non-anonymous users can be retrieved. In order to handle the session information for both anonymous and non-anonymous users, you need to set Generate Sessions Statistics GAMRepository property to Detail value.

Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.