To enable this setting navigate from the Setting > Practice Setup > General > Miscellaneous Settings > Enable User Timeout*.
Add the time in seconds under the "How many seconds of idle time before timing out user? *". > Save.
The number of seconds can be increased or decreased based on when you would like the prompt to show that login is required again.