In order to increase your session timeout, you can change the session timeout period in your Settings :

Select “General” and set your session timeout :

If you keep the Messages component open (+ in view), the automatic polling will keep the session alive (when left unattended).