TTMSMCPServer.SetSessionValue Method
Stores a string value against the session whose request is being handled on the calling thread, so state can be carried between calls from the same client.
API unit family: TMS.MCP.Server
Declaring type: TTMSMCPServer
Inherited from: TTMSMCPCustomServer
Overloads
Overload 1
Stores a string value against the session whose request is being handled on the calling thread, so state can be carried between calls from the same client.
procedure SetSessionValue(const AKey, AValue: string); overload;
Remarks
Does nothing outside a request or on a transport without sessions, because there is no session to store against.
Parameters
| Name | Description |
|---|---|
AKey |
Key to store under. |
AValue |
Value to store. |
Overload 2
Stores a string value against a specific session, regardless of which request is being handled. Does nothing when the identifier is empty or unknown.
procedure SetSessionValue(const ASessionId, AKey, AValue: string); overload;
Parameters
| Name | Description |
|---|---|
ASessionId |
Identifier of the session to store against. |
AKey |
Key to store under. |
AValue |
Value to store. |