cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Logout timer

AP_9587236
15-Moonstone

Logout timer

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

5 REPLIES 5

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.

AP_9587236
15-Moonstone
(To:PaiChung)

@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?

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.

AP_9587236
15-Moonstone
(To:PaiChung)

1. Should i keep "Idle Session Timeout (min)" to "0" for never option?

2. If i set to never option, the session variables wont lose datas right. It will stay  when the screen is idle for days?

3. If i have to use the timer for never option, what time i can set to the timer to call back to the platform??  Tell me the approximate time and why?

4. Imagine the timeout is 30 mins, but i used auto refresh for my mashup to trigger refrtesh for every 5 mins. what will happen now? In this scenario also session variable loose datas after 30 mins?

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.

View solution in original post

Announcements