Table of Contents

TTMSMCPServer.CurrentSessionState Method

Returns the state object of the session whose request is being handled on the calling thread.

API unit family: TMS.MCP.Server Declaring type: TTMSMCPServer Inherited from: TTMSMCPCustomServer

Syntax

function CurrentSessionState: TTMSMCPSessionState;

Remarks

Returns nil outside a request and on transports that have no sessions, so always test the result before using it. The object stays owned by the server and is destroyed with the session.

Returns

Session state, or nil when there is no current session.