You may faced this issue with DirectAdmin. Webmail get timeout frequently when typing a long message and you will again need to login and will lose the mail you were tying.
Please follow the below steps to increase the timeout value. ( By default it’s 10mins )
Webmail timeout DirectAdmin while typing long message
Edit the file
vim /var/www/html/webmail/inc/config.security.php
$idle_timeout = 10; //minutes
You can change it to any higher value.
============
Regards,
Vinod T K