I would check your cookie settings to ensure they match exactly to the forum.
cookie path /
cookie domain on both I suggest .domain.com so people can access both either by www or no www. If this is happening I can see why login is lost if domain is not set to allow both
cookie prefix usually bb but you can check your
vb config.php file to make sure