XF 2.1 Not logging out after certain time period

I'm having an issue with not being logged out automatically after inactivity. If I leave my browser open, the page stays open and logged in. This happens for both computer browsers and my cell phone.

I want all users to be logged out after inactivity and returned to the log in page for security reasons.

What can I do?