I use the action scheduler to do that. Set a wait time off whatever you like and then run the logout action. Of course every time a user goes to a new page or refreshes the page the timer will reset.
3 Likes