When and How Should Multi-Session Mode Be Used?
The Usage Intelligence SDK require a boolean parameter named “multiSessionEnabled” when calling ruiCreateConfig() or its equivalent. This is used to specify whether multiple user sessions can exist within a single application runtime.
What is the Difference Between Single-Session and Multi-Session Mode?
In single-session mode (multiSessionEnabled set to false), when starting the application and calling ruiStartSDK(), the Usage Intelligence SDK automatically starts a user session, and when calling ruiStopSDK(), the SDK automatically stops the user session it had started. This means that in single-session mode, a user session is tied to a runtime session, where a user session is considered to start when the application starts and stops when the application stops. This mode is designed for most applications and is convenient because your application does not need to manage sessions and session IDs – they are managed automatically by the Usage Intelligence SDK.
In multi-session mode (multiSessionEnabled set to true), session-management is left up to the developer. This mode is meant to be used when a single application runtime may host multiple user sessions. Examples of this use-case would be applications which require users to log-in, and the application may be left running between different user logins. In such cases, it does not make sense to start a session when the application is executed and stop the session when the application exits, but it would be more appropriate to log a session start when a user logs in and a session stop when the user logs off.
When NOT to Use Multi-Session Mode
If your application is used by a single user and a user session should be tied with when the application starts and stops, then single-session mode should be used and therefore the Usage Intelligence SDK will manage starting and stopping sessions. This also applies if you allow multiple parallel executions of your software, where the user can run the software two or more times at the same time. In such cases the multiple sessions in no way affect each other and single-session mode should still be used. Multi-session mode should ONLY be used in cases where you need to manage when a user session starts and stops as described above.
What to Consider When Using Multi-Session Mode
In multi-session mode, the management of user sessions is left up to the developer. Therefore, the developer must ensure that the functions ruiStartSession()and ruiStopSession() are called at the appropriate times, for example when a user login and logoff occurs. Also, when calling event tracking functions, you will need to pass the correct session ID under which this event occurred. This must be an ID of a session that has been started and not yet stopped.
What is Acceptable as Session ID?
The session ID must be a unique value for each session that is started. This may be a random value, or any other unique value generated by your application. Under no circumstance should you start 2 or more sessions with the same session ID.
Related Articles
Agent services may fail to start on Unix-like operating systems when agent is configured to run in least privilege mode an… 2Number of Views Why you see the error that the "default launch spec is used as a template only" 4Number of Views Agent performs many LDAP lookups for a nonexistent flxrasvc user when running in default/root mode when PerformUnixSoftwar… 1Number of Views Business adapter may fail to read data from CSV file if the "Column delimiter" setting is set to "semicolon" and schema.in… 11Number of Views "Graphical installers are not supported by the VM. The console mode will be used instead" 5Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago