Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hi everyone,
I'm beginner with Thingworx and I'm using:
Thingworx 8.5 with Postgre
I'd like to know how can I to create a timer to get active session.
For example:
I wanna motinor for how long time an user is logged.
Is possible create a timer to do it?
Regards,
Leonardo.
Solved! Go to Solution.
Hello @leokeinsfeld,
Take a look at the following article:
Events Provided by the SecurityMonitor Thing on ThingWorx
Unfortunately, this feature is not provided OOTB. However, you can create your own Data Table to store this data:
How to get current date and time using JavaScript source code in ThingWorx
This should allow you to keep track of all sessions in ThingWorx. You can play around with the services and events to create your own subscriptions that fit your use case and populate the Data Table.
Regards,
Emmanuel
Hi @leokeinsfeld,
Here are some links that may be helpful in addressing your request:
Events Provided by the SecurityMonitor Thing on ThingWorx
Simple User Login / Logout Audit Logger for ThingWorx
Please let me know if you have further questions.
Regards,
Emmanuel
Hi @emscur
I have seen this topics but I was not able to use it to resolve my problem.
I need to find one way to monitor how long time the users are logged in Thingworx Platform.
I would like to show this value in minutes.
Hello @leokeinsfeld,
Take a look at the following article:
Events Provided by the SecurityMonitor Thing on ThingWorx
Unfortunately, this feature is not provided OOTB. However, you can create your own Data Table to store this data:
How to get current date and time using JavaScript source code in ThingWorx
This should allow you to keep track of all sessions in ThingWorx. You can play around with the services and events to create your own subscriptions that fit your use case and populate the Data Table.
Regards,
Emmanuel