Detecting If the User is Idle or Inactive

That does sound like a great approach. Once you detect inactivity, navigate to a page that does all of the logging-out magic and navigates you to the login screen/page afterwards :clock11: