# GetSessions Method The GetSessions method returns a range of sessions of a computer. Syntax
    [obj=] SiteCafe.Server.Sessions.GetSessions(compIndex, sTime,
           eTime, start, maxCount, ascending)
Parameters
compIndex | Long value that specifies the computer index.
sTime | Long value that specifies the start time.
eTime | Long value that specifies the end time.
start | Long value that specifies the start session.
maxCount | Long value that specifies the maximum number of sessions.
ascending | Boolean value that specifies whether to list ascending.
Return Value Returns a SessionsCol collection containing the specified sessions. Remarks The start and/or end time will be ignored if they are 0. Otherwise they are specified by the return value of the Date.getVarDate method divided by 1000. Examples The following example displays the current amount of the first computer's first session.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    sessions = SiteCafe.Server.Sessions.GetSessions(1, 0, 0, 1, 10, true);
    alert(sessions.Item(1).SessionAmount);
    </SCRIPT>
Applies to SiteKiosk v6.2 (and later versions). Back to top