WeOnlyDo! wodWebServer ActiveX - StateChange Event
    
 

Description

Fires when users state changes.


Syntax

Private Sub object_StateChange(User, OldState)



The StateChange Event syntax has these parts:

Part Description
object A wodWebServer object.
User A WebUser object. Reference to the User whose state has changed.
OldState A StatesEnum enumeration, as described in settings.

Constant value that holds value of previous state.


Settings

The settings for OldState are:

Constant Value Description
 Disconnected 0 Disconnected from server.
 Connecting 1 User is connecting to the server.
 Connected 2 User is connected to the server.
 SendingRequest 3 User is sending request.
 ReceiveWait 4 User is waiting to receive data.
 ReceivingResponse 5 Receiving response from the server.
 Done 6 Done receiving response from the server.

Remarks

StateChange event is fired each time user's state changes. Depending on values provided by this event, you can track down user's behavior on your system, deny access to it, or just store it locally for debugging purposes.