Skip to main content
17-Peridot
July 21, 2021
Solved

Logout timer

  • July 21, 2021
  • 1 reply
  • 3391 views

If the user stopped using the thingworx pages and forget to logout means, in 5 mins the organisation page should get logged out automatically. How to do this?? 

 

(I have observed one problem that after login if the user is not using the thingworx pages for long time & refreshing the thingworx page after that means, the current mashup is not getting the inputs from previous pages(session variables loosing its datas). So at what particular time if we refreshing the page the session variables wont have data!! At that time we can trigger for automatic logout right?

Best answer by PaiChung

You can use 0, or any of the other methods (as long as you make a platform call before the session times out)

It probably doesn't have to be said, but only use this type of method for displays that are like general displays, not specific user operation screens.

1 reply

22-Sapphire I
July 21, 2021

The session will automatically time out after being idle for a certain time, I believe you can set that in the User Management Subsystem. The screen though will still show the mashup.

You could potentially do a timer and check activity and call an actual 'terminate session' and redirect or the logout function.

17-Peridot
July 28, 2021

@PaiChung 
In the User Management Subsystem, I can see only Performance Metrics & Session Shapes. How I can set the time out for session variables here?

Can you please show me what are the options it have ?
Is there a "Never" option?

22-Sapphire I
July 28, 2021

Not sure if you are looking in the right place, but in User Management Subsystem, there is the Configuration Tab and it has 'Idle Session Timeout'

There is no 'never' option, but you could set it to a very long time.

You can also 'fake' activity from the mashup, using a timer and making that do a call back to the platform to prevent idle session timeout.