Session Timeout
This is the time in seconds that a user must remain inactive before their login session expires. This setting also controls how long a user will remain on Who's Online after their last activity.
I'll quote you something from admin panel to explain why this happens:
This is set to 15 mins. So if you just leave your browser on one page for more then 15 mins you will be logged out. That is just a security measure.