Skip to content

GetLastActivity()

ts
// in class: Session
function GetLastActivity(): Date;

This function returns the timestamp of the last client-server activity (interaction) as a JavaScript Date object.

Example

ts
{
  var ts = Session.GetLastActivity();
  Log('Last activity in this session occurred on: ' + ts.toString());
}