Skip to main content
Table of Contents

TTMSMCPServer.RemoveSessionValue Method

Discards a string value stored against the session whose request is being handled on the calling thread. Does nothing outside a request or on a transport without sessions.

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

Overloads

Overload 1

Discards a string value stored against the session whose request is being handled on the calling thread. Does nothing outside a request or on a transport without sessions.

TMS.MCP.Server.hppPascalC++
procedure RemoveSessionValue(const AKey: string); overload;
void __fastcall RemoveSessionValue(const System::UnicodeString AKey)/* overload */;

Parameters

Name Description
AKey Key to remove.

Overload 2

Discards a string value stored against a specific session. Does nothing when the identifier is empty or unknown.

TMS.MCP.Server.hppPascalC++
procedure RemoveSessionValue(const ASessionId, AKey: string); overload;
void __fastcall RemoveSessionValue(const System::UnicodeString ASessionId, const System::UnicodeString AKey)/* overload */;

Parameters

Name Description
ASessionId Identifier of the session to remove from.
AKey Key to remove.