In the Company Settings - Advanced Tab of your file, there is a setting where you determine the amount of time after which QBO will log you off if you aren't doing anything.  

The default is one hour, you can extend it to 3 hours.




Be aware, that this is a global setting for the company, and not specific by user.

Updated: May2017