How to setup real time dashboard with auto 15 minutes session timeout if user is inactive

Hi,

In Dundas BI, Currently we have setup session timeout is 15 minutes and that is perfectly worked.

Now I created some real time matric set which will refresh every 5 second., And I created real time dashboard in this case default 15 minutes session timeout is not working. actually it is not logout after 15 minutes.

So how to setup dashboard for real time and is refreshed every 5 second and it should automatically session time out with 15 minutes?
here real time dashboard working fine and refreshed every 5 seconds, but if user not performing any activity it should automatically logout after 15 minutes.

Thanks & regards,
Jatin

Hi Jatin,

I’m not entirely sure why you want this but what you are doing is automatically keeping your session alive by having a 5-second refresh and it will never time out. If you want to shut down or log off after 15 minutes, consider adding a timer control to your dashboard and then logging out your user manually with a script after the timer fires.

https://www.dundas.com/support/api-docs/js/#API%20Reference/dundas/views/WebAppService/Methods/logOff.html

Hi Jeff,

Thank you for reply., actually why i required because my matric set & dashboard is realtime and updated every 5 second so in this case possible that if user is inactive after certain minutes and will not click logout button manually then possible that user session will longer active even if user inactive. and it will create active session even in database because it fires direct query to database.
So better to manage this inactive session and it should automatically logout after 10 or 15 minutes of inactive user.
If matric set is not realtime and not refresh every second then yes we can definately terminate inactive user logout but same thing didnt work in realtime matricset which updates every 5 seconds.

highly appreciate your work around solution on it.

Thanks & regards,
Jatin.

Hi Jeff,

can you give me more detail how exactly that timer control will work in this case ? or is there any other work around of it ?

Thanks & regards,
Jatin.

Hi Jatin,

Here is what I mean. Start by adding this timer control.

Set the timer interval to 15 minutes.

image

Add your script to Timer Interval Tick - this will fire after 15 minutes from the above settings.

log out with script:

var appservice = this.getService(“WebAppService”);
appservice.logOff();

I hope this helps.

Hi Jeff,

Great … I think it will work for me.
let i will check and let you know.

really appreciate Jeff.
Thank you very much…!!

Jatin.

Hi Jeff,

I implemented this timer control, and it works for me.
Thank you very much and appreciate.

Oh cool - thanks for letting me know that this worked for you.

By the way, it’s also a neat technique to force your dashboards to refresh fully on a timer. Good for TV setups. Instead of calling the logout script, set up a navigation interaction and navigate to the dashboard your already on.

1 Like