TTMSMCPStreamableHTTPTransport.SessionTimeoutMs Property
How long a session may go unused before it is purged, in milliseconds. Defaults to
300000.
API unit family: TMS.MCP.Transport.StreamableHTTP
Declaring type: TTMSMCPStreamableHTTPTransport
Type: Integer
Syntax
property SessionTimeoutMs: Integer;
Default: 300000
Remarks
Activity is any request carrying the session identifier, and also a successful keep-alive write to an open stream - so a client holding a stream open keeps its session alive without sending anything. Purging reports the session through TTMSMCPTransport.OnSessionRemoved, which is what lets the server discard the values and user data stored against it together with any resources, prompts and subscriptions that belonged to it alone. Set it to zero or less to disable purging entirely, in which case sessions accumulate until the client terminates them or the channel stops. Idle sessions are only noticed as often as TTMSMCPStreamableHTTPTransport.CleanupIntervalMs allows, so a session may outlive its timeout by up to that interval.