WeOnlyDo! wodWebServer ActiveX - StateChange Method
      
 

Description

Called when users state changes.


Return Type

None  


Syntax

object.StateChange Owner, User, OldState



The StateChange Method syntax has these parts:

Part Description
object An expression evaluating to an object of type IwodWebNotify.
Owner Required. A wodWebServerCom object. Reference to wodWebServer instance that called this notification method.
User Required. A WebUser object. Reference to the User whose state has changed.
OldState Required. 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

NOTE: This method is called only if you implemented IwodWebNotify interface in your application, and wodWebServer.Notification property has received reference to instance of your implementation.

StateChange notification method is called 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.