Your cookies in both products will need to be set like this
cookie path /
cookie prefix bb
cookie domain .domain.com
You can not set your forums to /vbtest and expect to be logged into the gallery as your only setting the cookie to be read over the forum.
Hope this helps.