SRV_T_SESSIONID

The SRV_T_SESSIONID is a thread property that retrieves the session ID that the client sends to Open Server. You can set the SRV_T_SESSIONID property using the srv_thread_props() function, given that:

This sample code sets the SRV_T_SESSIONID property:

CS_RETCODE ret;
CS_SESSIONID hasessionid;
ret = srv_thread_props(sp, CS_SET, SRV_T_SESSIONID,
   hasessionid, sizeof(hasessionid), NULL);

NoteFor HA-failover, you must program an srv_negotiate() sequence to send the session ID to the client.