Why am I being prompted for username and password after checking mail in webmail?

Sometimes when you log into webmail it can take 5-10 minutes (especially if  you just close out and not logoff) for the the server to realize that you are no longer logged into the mailbox. The system will only allow one connection to the email box at a time and it was picking up duplicate connections therefore causing the error of bad login.