GetLogons Method



 
The GetLogons method returns logon and logoff dates.


Syntax

    [obj=] SiteCafe.Server.Admins.Logons.GetLogons(index, sTime, eTime,
           start, maxCount, ascending)
    
Parameters
    index Long value that specifies the admin index.
    sTime Long value that specifies the start time.
    eTime Long value that specifies the end time.
    start Long value that specifies the start logon.
    maxCount Long value that specifies the maximum number of logons.
    ascending Boolean value that specifies whether to return the logons ascending.
Return Value
    Returns an LogonsCol collection containing the specified logons.
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 first logon date of the first admin.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    logons = SiteCafe.Server.Admins.Logons.GetLogons(1, 0, 0, 1, 1, true);
    alert(logons.Item(1).LogonDate);
    </SCRIPT>
    

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

Back to top