No limits are placed on how long you can be logged into your account.
WebMail will not time you out of your session regardless of inactivity. Your session ends when you log out or close your browser.