Table of Contents

TTMSMCPCustomServer.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: 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.