OnCloseSession Event



 
Fires when a session is closed.


Syntax

    SiteCafe.Server.Sessions.OnCloseSession = 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 is closed.

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

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

Back to top