Skip to content

GetVirtualSite()

ts
// in class: Session
function GetVirtualSite(): string;

This function returns the ID of the virtual site in which context the session is running.

Example

ts
{
  var vSiteId = Session.GetVirtualSite();
  Log('Virtual site is: ' + vSiteId);
}