This seems to only work as a temporary fix. If you log on through WP after resetting the cookie domain, it initially works. However, if there’s a session where you login through WP and log out through phpBB forums, the cookies stop working properly again.