GetSessionByIndex Method



 
The GetSessionByIndex method returns a session by index.


Syntax

    [obj=] SiteCafe.Server.Sessions.GetSessionByIndex(index)
    
Parameters
    index Long value that specifies the session index.
Return Value
    Returns a Session object representing the specified session.
Remarks
    None.
Examples
    The following example displays the current amount of the first session.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    session = SiteCafe.Server.Sessions.GetSessionByIndex(1);
    alert(session.SessionAmount);
    </SCRIPT>
    

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

Back to top