# GetExpiredAccounts Method The GetActivatedAccounts method returns a range of expired accounts. Syntax
    [obj=] SiteCafe.Server.Accounts.GetExpiredAccounts(sTime, eTime,
           sAccount, maxCount, activated)
Parameters
sTime | Long value that specifies the start time.
eTime | Long value that specifies the end time.
sAccount | Long value that specifies the start account.
maxCount | Long value that specifies the maximum number of accounts.
maxCount | Long value that specifies the maximum number of accounts.
activated | Boolean value that specifies whether to return only active accounts.
Return Value Returns an AccountsCol collection containing the specified accounts. 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 persistent status of the first expired active account.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    acs = SiteCafe.Server.Accounts.GetExpiredAccounts(0, 0, 1, 10, true);
    alert(acs.Item(1).Persistent);
    </SCRIPT>
Applies to SiteKiosk v6.2 (and later versions). Back to top