AddCustomData()
ts
AddCustomData(s: string): void;Adds a custom string value to the current session's custom data storage. This storage is a session-scoped list of strings, allowing scripts and event-handlers within the same session to share temporary information.
NOTE
Custom data added with this function is only accessible within the same session. It is not shared between different client sessions.
This mechanism is useful for tracking state or passing information between scripts and event-handlers that run at different times during the same session.
Example
ts
{
if (Session) {
// Store the name of the file being uploaded for later use
Session.AddCustomData(Session.GetRelPath());
} else {
Log('Session object is not available.');
}
}