Create a Session Timeout – NiceLabel Web Client Instructions
Target Audience: Advanced User, IT Manager
Article #: 13880
Summary
This Instruction Article explains how to create a session timeout for the NiceLabel Web Client. Following a session timeout, a user will be required to authenticate again to the licensed NiceLabel Cloud URL. A session timeout is often needed to ensure that each person using the same Web Client goes through authentication, so the user audit history is as accurate as possible.
Preparation
NiceLabel Designer – PowerForms is needed to update NiceLabel Solutions opened by Web Client users as Applications.
Instructions
- In NiceLabel Designer, open the NiceLabel solution which uses forms.
- Select the Data tab, select Dynamic Data Manager, and click Internal Variables.

- Click the check box for the variable SystemUserName.

- Create a VBScript Expression function for the Web Client configuration path.
Use the expression “C:\Users\” & [SystemUserName] & “\AppData\Local\NiceLabel\NiceLabelWebClient\user.product.config”

- Create a standard text variable called Variable_ASCII.
- Select a form and click “Document Properties”.
- Click Events.
- In the “On Form Inactivity” section, select the time interval for session timeout.
- In the “On Form Inactivity” section, click the “Actions” button.

- In the Actions Editor, add the following four actions:

- In the Read Data from File action-
- Set File name: to the variable [WC_Config_Path].
- Set Variable: to the variable Variable_ASCII.
- In the String Manipulation action-
- Click “Selected Variable”.
- Click the checkbox next to Variable_ASCII.
- Click the Search and Replace check box.
- In the “Find What” field, add: <PowerFormsCloudTokenData>(.*?)</PowerFormsCloudTokenData>
- In the “Replace With” field, add: <PowerFormsCloudTokenData></PowerFormsCloudTokenData>
- Click the checkbox next to “Regular expressions”.
- In the Save Data to File action-
- Set File name to [WC_Config_Path].
- Set Content to [Variable_ASCII].
- Click the OK button to save.
- Repeat steps 6-13 for each form in the solution. Steps 10-13 can be done quickly by copying and pasting the four Actions from one form’s On Form Inactivity Actions to another.
Additional comments
Tested Using:
NiceLabel Cloud, NiceLabel Designer 10
If you need further assistance, please contact us.
Author
Related Articles
- Loftware Redirect Print to PDF action using multiple printer seats
- License is failed – TEKLYNX CENTRAL Error Message
- Loftware Web Designer vs Desktop Designer
- Loftware Workday API Splitting Print Jobs
- Planning a BarTender Server Migration and Upgrade – BarTender Instructions Article
- Deciding on an In-Place Upgrade, Test Server, or Migration – BarTender Reference Article
