Logout Idle users after X minutes

  • 0
  • 1
  • Question
  • Updated 6 years ago
  • Answered
Hello,
Is there any way to logout users that have been idle for 30 minutes for example.
Currently , users can have quickbase open for the entire day - is there a way to limit this ?

Thanks,
Mark
Photo of Mark

Mark

  • 0 Points

Posted 6 years ago

  • 0
  • 1
Photo of Surya

Surya

  • 0 Points
QuickBase does not provide exactly what you are looking for, although I wish they did.

What you do have is: at the realm level (for enterprise accounts) you can select a checkbox to disallow remaining signed in. Then ALL your users MUST log in after timeout, or closing the browser etc, if they didn't sign out.

If you have a workgroup account, then it is up to the individual to select that box.

The timeout is usually in hours and not in minutes, unfortunately.

Hope that helps.
Photo of Tobias

Tobias

  • 20 Points
You can put the following piece of code on the appropriate role's dashboard in a new text section with HTML enabled. This will issue the API_SignOut command if they have been sitting on the dashboard for 30 minutes (1800 seconds) without doing anything. If you would like to change the length of time, simply change the "var QBU_seconds =1800" variable to something other than 1800 seconds.


<script type="text/javascript">
var QBU_seconds=1800;
$(function(){
window.setInterval(function(){
QBU_seconds -= 1;
if(QBU_seconds == 0){
var addnew = new jaxreq('/db/main?act=API_SignOut')
addnew.DoSyncCmd();
window.location.href="/db/main?a=SignIn";
}
}, 1000);
});
</script>
Photo of Surya

Surya

  • 0 Points
Tobias, Thanks, This works fine. The only caveat is that this has to be on every single page under QuickBase for it run and trigger. One idea I have for that is to create a HTML Text field on every table or something and make sure it is visible on every report and every form so it is more likely to get trigerred, unless you have any other solution for that.
Photo of Tobias

Tobias

  • 20 Points
I wouldn't put it on forms.  If you have a user that is entering/editing data and the API call was made to sign out, they would possibly lose the data they had entered.  I haven't tested to see if the linkaway prompt (Are you sure you want to leave this page?) would prevent the sign out to give them the option to save so they wouldn't lose their data.  I also haven't tested to see if it could be housed in an HTML enabled field and then added to a report to allow the sign out from a report page.