This function retrieves the value of a current cloud session attribute. These attributes are set during session initialisation by the browser.
You can query the following standard attributes:
Language |
Browser language. |
baseURL |
Base URL of the application. |
protocol |
Connection protocol - ws (normal) or wss (secure protocol). |
host |
Web server host name. |
port |
Web server connection port. |
context |
URL relative to the web server root. |
userAgent |
User Agent of the web Browser. |
It is possible to set user-specific attributes in the Adelia Cloud desktop JSP. These specific attributes can be read in the programs. The key name set in the jsp is prefixed by "custom".
Example: If you set a user attribute "user_login" in the jsp, you will find it in the session attributes under the name "custom.user_login".
Context
Adelia Cloud client.
Parameters
ALPHA (n) |
Attribute |
Attribute name. |
ALPHA (n) |
Value |
Attribute value. Output parameter. |
NUM_BIN_4 |
ValueLgth |
Length of the Value variable (n). |
Example
ALPHA(50) |
Attribute |
ALPHA(256) |
Value |
NUM_BIN_4 |
Lgth |
* retrieval of the 'Language' attribute (browser language: French, English, etc.)
Attr = 'Language'
Lgth = 256
CALL_DLL 'VaToolBx' 'VaToolBxCloudGetSessionAttribute' Attribute Value Lgth
List of the VaToolBx functions by topic