GetSessions Method

The GetSessions method returns a range of sessions of a computer.


    [obj=] SiteCafe.Server.Sessions.GetSessions(compIndex, sTime,
           eTime, start, maxCount, ascending)
    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.
    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.
    The following example displays the current amount of the first computer's first session.

    <SCRIPT TYPE="text/javascript">
    sessions = SiteCafe.Server.Sessions.GetSessions(1, 0, 0, 1, 10, true);

Applies to
    SiteKiosk v6.2 (and later versions).

Back to top