8
I managed to get the auto-login working. I ended up setting a cookie in XOOPS and reading the cookie from Flashchat's connection.php to transfer the user id correctly.
If anyone knows how to do it correctly, I'd still be interested in that, as this is not an ideal solution. But at least it works!