Skip to main content
Version: 5.7.0

RunScriptAndLogoutOnApplicationQuit

Execute a script on the server and Logout in one frame, meant to be used when application closes/exits

Method Parameters

ParameterDescription
forgetUserSet as true to clear profile ID that is saved, false to save it.
scriptNameThe name with its full path on the server to be executed.
jsonScriptDataData to be sent to the script in json format.

Usage

http://localhost:3000
bool forgetUser = true;
string scriptName = "path/to/script1";
string jsonScriptData = "{\"key\":\"value\"}";

_bc.RunScriptAndLogoutOnApplicationQuit(forgetUser, scriptName, jsonScriptData);