In the SRV_CONNECT event handler, your application must:
Check the SRV_T_MIGRATED property and determine if the connection is a migrated connection. If it is, your application must access the context based on the session ID provided by the client. The session ID can be retrieved using the SRV_T_SESSIONID thread property.
Check CS_REQ_MIGRATE to determine if the client supports connection migration. If the client supports connection migration, your application must send a session ID using the SRV_T_SESSIONID property to the client if the client has not yet received a session ID. By assigning the client a session ID, your application can instruct the client to migrate when the need arises.