If the gameserver hosts a PHP based website, the PHP session will expire during game play.
Since Marauroa already has code to find the PHP session files in order to pick up the account name, Marauroa could refresh the last modified timestamp of those files regularly.
Alternatively the game could create a dummy request to a PHP-page via fetch in a setInterval callback.