Settings Cache Object
The settings_cache object is a global object that is available anywhere in the main script file. It is a shared name-value cache. Multiple SSO script instances that run in different threads of a single process can reuse this cache to get session information.
It includes the following function that sets the value of a cache setting:
set(name, value)
where:
name is a string that identifies the setting name
value is a string that identifies the setting value
It includes the following function that gets the value of a cache setting:
get(name)
where:
name is a string that identifies the setting name
For example:
The following code stores a value that CRM Desktop SSO gets in another instance of the SSO script:
settings_cache.set("MyKey", "MyValue");
The following code gets the stored value. If no value exists, then this code returns an empty string:
var v = settings_cache.get("MyKey");