Auto Logged Out Users Don't Get Logged Out

My members often don't remember to log out, but the system logs them out after a certain amount of inactivity, however when they come back to the website it shows them as being logged in, but they can't access the pages because they are actually logged out.

How can I get the system to show them as logged out when they are logged out due to inactivity?

Thank you.