Logging out due to session inactivity

Is it possible to log out the inactive users after a certain time limit? There is session timeout in Settings, but it just logs you out irrespective of whether you are active or not.

Our regulations need us to set a time limit of 15 mins of inactivity to log the users out. With the current setup in ERPNext, the system logs them out in 15 min. It is an inconvenience because users lose their work suddenly. Is there a way to fix this?

Time out is based on activity!

oops. My bad. Let me check again.