Show/Hide Toolbars

Inventu Viewer+ Single Signon Server Extension

Allows setting the Host device ID based on variables in the active variables using the same Handlebars syntax as other text expressions.

 

This adds a unique expression, and you can implement a counter based on a key such as UserID.

 

Implementing a Counter

The logic will keep track of all device ID's set with a "root" and will increment a counter depending on active sessions.  If a session has been stopped, that session's counter will be re-used.  The % character is used as a counter with the number of zero-lead digits equal to the number of % characters.

 

Example:

 

SetDeviceID="{{UserID}}%%"

 

Note that a ?Switch Expression can also be used in the SetDeviceID...

In the above example, the DeviceID will be based on the connecting UserID--so if a user has "JMARLOW" as a userid, the first three sessions will have a device ID or JMARLOW01, JMARLOW02 and JMARLOW03.

If any of the three sessions is stopped and the user starts another, that session's counter will be re-used rather than being JMARLOW04.