Table of contents

Official Content

Identifies the session that is to be killed, returning true or false depending on the success of the execution.


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


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

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

The final status of the killed session is Finished.


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


  • 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.


Last update: November 2023 | © GeneXus. All rights reserved. GeneXus Powered by Globant