OnCreateSession Event



 
Fires when a session has been created.


Syntax

    SiteCafe.Server.Sessions.OnCreateSession = handler
    
Parameters
    index Long value that contains the session index.
Remarks
    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example displays the index when a session has been created.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteCafe.Server.Sessions.OnCreateSession = OnCreateSession;
    function OnCreateSession(index)
    {
       alert("Session: " + index);
    }
    </SCRIPT>
    

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

Back to top